-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
flake8
per-file-ignores
not read from setup.cfg
?
#730
Comments
Hey @janosh This is because nbQA converts jupyter notebooks to temporary Python files, and then runs whatever tool you've specified over them It's a limitation of the tool, not sure what can be done here, other than perhaps to add a note about this in the docs |
It looks like tempfiles have access to the original file name Lines 60 to 64 in 3d7afb0
So maybe when running But maybe too much hassle. In any case, documenting this limitation would be good! Happy to submit a PR. Should it go here? |
Thanks! I think here might be better https://nbqa.readthedocs.io/en/latest/known-limitations.html ? |
If I remove
ignore = E402
, I still get$ nbqa flake8 examples/*.ipynb examples/foo.ipynb:cell_9:2:1: E402 module level import not at top of file
if I leave it in, the error disappears so
setup.cfg
is read butper-file-ignores
apparently isn't?The text was updated successfully, but these errors were encountered: