summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-07-26 06:24:04 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-07-26 06:24:04 -0500
commitf82b5d62d0c4e48b95466bb259f3401aecf28de7 (patch)
treea3a2be431b16e5719b5bbdacb6adee78e1fd9721 /src
parent88d9213962d6023d4ad97b54d2c6d1300512b727 (diff)
downloadflake8-f82b5d62d0c4e48b95466bb259f3401aecf28de7.tar.gz
Update NOQA regular expression
This allows for other text after `# noqa`. Related to #180
Diffstat (limited to 'src')
-rw-r--r--src/flake8/style_guide.py2
1 files changed, 1 insertions, 1 deletions
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<codes>[A-Z0-9,]+)?$',
+ '# noqa(?:: (?P<codes>[A-Z0-9,]+))?',
re.IGNORECASE
)