mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-03 03:56:52 +00:00
allow the flake8: header to be more generic
This commit is contained in:
parent
49b10fcad3
commit
2c8b8f6247
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ def skip_line(line):
|
|||
return line.strip().lower().endswith('# noqa')
|
||||
|
||||
|
||||
_NOQA = re.compile(r'^# flake8: noqa', re.I | re.M)
|
||||
_NOQA = re.compile(r'flake8[:=]\s*noqa', re.I | re.M)
|
||||
|
||||
|
||||
def skip_file(path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue