summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Stapleton Cordasco <graffatcolmingov@gmail.com>2017-07-28 19:31:32 -0500
committerIan Stapleton Cordasco <graffatcolmingov@gmail.com>2017-07-28 19:31:32 -0500
commitec996ffd85cbe6157b7cf480e7c84b36d2153f4b (patch)
tree636e2002ea04d201e02f33edbd2af1dfac57051e /src
parenta4f2135c774c31a7988a7cadbf793fe1c9271284 (diff)
downloadflake8-ec996ffd85cbe6157b7cf480e7c84b36d2153f4b.tar.gz
Allow spaces in # noqa lists
To match our new configuration file format and its allowance for spaces in the list Closes #356
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 e8c6bfb..55cb48a 100644
--- a/src/flake8/defaults.py
+++ b/src/flake8/defaults.py
@@ -46,7 +46,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-Z][0-9]+,?)+))?',
+ '# noqa(?:: (?P<codes>([A-Z][0-9]+(?:[,\s]+)?)+))?',
re.IGNORECASE
)