Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turning off check for a specific file or function inline #noqa #26

Open
hayorov opened this issue May 1, 2019 · 2 comments
Open

Turning off check for a specific file or function inline #noqa #26

hayorov opened this issue May 1, 2019 · 2 comments

Comments

@hayorov
Copy link

hayorov commented May 1, 2019

It would be nice to have an ability to add noqa inline instead of additional cmd arguments -e, --exclude and -i, --ignore

@rubik
Copy link
Owner

rubik commented May 17, 2019

Xenon is just a wrapper around Radon, so this change would need to go there. But it's quite tricky to implement something like this. Complexity is calculated on the AST, so if a comment like that is on some node, should Radon ignore all of its children? It's not that clear.

@davetapley
Copy link
Contributor

It depends on ack, but here's a workaround:

ack -t python 'xenon: noqa' -L --print0 | xargs -0 xenon -b B -m A -a A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants