-
This discussion started at PyCQA/flake8#1519. I have a file called Extract of my config:
With or without hyphens around the file name, in both cases the extract of the console output looks like this:
So I would wish to be able how exactly the glob patterns work but in the documentation I could not find sufficient information how to deal with spaces in file names. Thanks a lot for your assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sorry to "send you back" (I will file the issue for that) but this is an upstream issue with flake8😅 CauseI did a quick test and the problem is with the spaces in the path, since [flake8_nb]
per-file-ignores =
; Single file and single error code
file1.py:E231
; Single file and multiple error codes
file1.py:E231,F401
; Multiple files and single error code
file1.py file2.py:E231
; The following are all equivalent, for multiple files and multiple error code
file1.py file2.py:E231,E401
file1.py file2.py:E231 E401
file1.py,file2.py:E231,E401 This is why Since adding support for file paths with white spaces in it would most likely be a breaking change (e.g. Workarounds
[flake8_nb]
per-file-ignores =
01*Einfuehrung*in*Python.ipynb: F403, F405, E116, E731 |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @s-weigand for your comment and support! |
Beta Was this translation helpful? Give feedback.
Sorry to "send you back" (I will file the issue for that) but this is an upstream issue with flake8😅
Cause
I did a quick test and the problem is with the spaces in the path, since
flake8
allows you to define a list of files as well as a list of errors codes forper-file-ignores
which might be separated with commas or white spaces or a mix of them.