allow the flake8: header to be more generic

This commit is contained in:
Timothée Peignier 2011-12-25 11:02:36 +01:00
parent 49b10fcad3
commit 2c8b8f6247

View file

@ -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):