From 02363b203242550fcc6481006000e7e3710c89c7 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Mon, 11 Jul 2022 11:50:02 +0200 Subject: [PATCH] document unsupported --per-file-ignores flake8 flag in docs/known-limitations.rst --- docs/known-limitations.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/known-limitations.rst b/docs/known-limitations.rst index dfa470dc..7230ebfc 100644 --- a/docs/known-limitations.rst +++ b/docs/known-limitations.rst @@ -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 `_). + Any other limitation is likely unintentional - if you run into any, please do report an issue.