From 2c8b8f6247fa99463f8f746278634091f56f54ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Peignier?= Date: Sun, 25 Dec 2011 11:02:36 +0100 Subject: [PATCH 1/2] allow the flake8: header to be more generic --- flake8/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/util.py b/flake8/util.py index 42f15d8..86db8ce 100644 --- a/flake8/util.py +++ b/flake8/util.py @@ -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): From 28e07cee91da472095c6aa40be34d928efad77ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Peignier?= Date: Wed, 4 Jan 2012 15:59:15 +0100 Subject: [PATCH 2/2] change README --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index a9f830b..3c6a189 100644 --- a/README +++ b/README @@ -14,7 +14,7 @@ in a per-file, merged output. It also adds a few features: -- files that starts with this header are skipped:: +- files that contains with this header are skipped:: # flake8: noqa