mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 03:46:53 +00:00
Allow spaces in # noqa lists
To match our new configuration file format and its allowance for spaces in the list Closes #356
This commit is contained in:
parent
a4f2135c77
commit
ec996ffd85
3 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ NOQA_INLINE_REGEXP = re.compile(
|
|||
# We do not care about the ``: `` that follows ``noqa``
|
||||
# We do not care about the casing of ``noqa``
|
||||
# We want a comma-separated list of errors
|
||||
'# noqa(?:: (?P<codes>([A-Z][0-9]+,?)+))?',
|
||||
'# noqa(?:: (?P<codes>([A-Z][0-9]+(?:[,\s]+)?)+))?',
|
||||
re.IGNORECASE
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue