summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-07-28 12:28:38 +0000
committerIan Cordasco <graffatcolmingov@gmail.com>2016-07-28 12:28:38 +0000
commit53455fdff7e89f83d811feffcdd5238b84113d63 (patch)
treee78fc7af443f0d7376ff9be23785b84ecadd2dc8 /src
parent47e3e65cc1734e46fd16ea11622e57b7978d3e0d (diff)
parentc0ddc54f2f5e3f453735780e639be08ef3b15e2d (diff)
downloadflake8-53455fdff7e89f83d811feffcdd5238b84113d63.tar.gz
Merge branch 'bug/178' into 'master'
Match noqa for users with explanations *Description of changes* *Related to:* #178 See merge request !99
Diffstat (limited to 'src')
-rw-r--r--src/flake8/defaults.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/defaults.py b/src/flake8/defaults.py
index 73cadf1..e3ac9fb 100644
--- a/src/flake8/defaults.py
+++ b/src/flake8/defaults.py
@@ -27,7 +27,7 @@ NOQA_INLINE_REGEXP = re.compile(
# 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-Z][0-9]+,?)+))?',
re.IGNORECASE
)