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

Document unsupported --per-file-ignores flake8 flag #732

Merged
merged 1 commit into from
Jul 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/known-limitations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ then the following will still not be processed:
- automagics (ideas for how to detect them statically are welcome!);
- cells with code which ``IPython`` would transform magics into (e.g. ``get_ipython().system('ls')``).

Because ``nbQA`` converts the code cells in Jupyter notebooks to temporary Python files for linting, certain flags like ``flake8``'s
``--per-file-ignores`` don't work. The temporary Python files will not match the specified file patterns and ignored error codes will still
surface (`GH issue <https://github.com/nbQA-dev/nbQA/issues/730>`_).

Any other limitation is likely unintentional - if you run into any, please do report an issue.