mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 12:36:54 +00:00
Update NOQA regular expression
This allows for other text after `# noqa`. Related to #180
This commit is contained in:
parent
88d9213962
commit
f82b5d62d0
2 changed files with 4 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class StyleGuide(object):
|
|||
# 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-Z0-9,]+)?$',
|
||||
'# noqa(?:: (?P<codes>[A-Z0-9,]+))?',
|
||||
re.IGNORECASE
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue