From f82b5d62d0c4e48b95466bb259f3401aecf28de7 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 26 Jul 2016 06:24:04 -0500 Subject: Update NOQA regular expression This allows for other text after `# noqa`. Related to #180 --- src/flake8/style_guide.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flake8') diff --git a/src/flake8/style_guide.py b/src/flake8/style_guide.py index 284444d..950d722 100644 --- a/src/flake8/style_guide.py +++ b/src/flake8/style_guide.py @@ -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[A-Z0-9,]+)?$', + '# noqa(?:: (?P[A-Z0-9,]+))?', re.IGNORECASE ) -- cgit v1.2.1