mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-19 01:59:51 +00:00
Merged in cyberdelia/flake8 (pull request #4)
This commit is contained in:
commit
ad87ad1960
2 changed files with 2 additions and 2 deletions
2
README
2
README
|
|
@ -14,7 +14,7 @@ in a per-file, merged output.
|
||||||
|
|
||||||
It also adds a few features:
|
It also adds a few features:
|
||||||
|
|
||||||
- files that starts with this header are skipped::
|
- files that contains with this header are skipped::
|
||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ def skip_line(line):
|
||||||
return line.strip().lower().endswith('# noqa')
|
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):
|
def skip_file(path):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue