summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-06-16 17:17:46 +0000
committerAnthony Sottile <asottile@umich.edu>2019-06-16 17:17:46 +0000
commit076dfeee372affb1dbe849d12a1cc20f8ea37d40 (patch)
tree8a53b40072659e1e02e35290953c7b20f5706d7f /src
parent2f8bc64b1e688cc835e57547c544f34b8bcd7a2a (diff)
parent37964dbd848c89e0acdef7d5ea0bf812539f852c (diff)
downloadflake8-076dfeee372affb1dbe849d12a1cc20f8ea37d40.tar.gz
Merge branch 'patch-1' into 'master'
Identify error codes with more than one letter in noqa-flags correctly Closes #549 See merge request pycqa/flake8!326
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 3fff376..72452a7 100644
--- a/src/flake8/defaults.py
+++ b/src/flake8/defaults.py
@@ -36,7 +36,7 @@ NOQA_INLINE_REGEXP = re.compile(
# We do not care about the casing of ``noqa``
# We want a comma-separated list of errors
# https://regex101.com/r/4XUuax/2 full explenation of the regex
- r"# noqa(?::[\s]?(?P<codes>([A-Z][0-9]+(?:[,\s]+)?)+))?",
+ r"# noqa(?::[\s]?(?P<codes>([A-Z]+[0-9]+(?:[,\s]+)?)+))?",
re.IGNORECASE,
)