summaryrefslogtreecommitdiff
path: root/src/flake8/defaults.py
diff options
context:
space:
mode:
authorTomer Keren <tomer.keren.dev@gmail.com>2018-12-27 18:28:08 +0200
committerTomer Keren <tomer.keren.dev@gmail.com>2018-12-27 18:28:08 +0200
commit445d19b9de7cd87138a4d4fb07e666720625c484 (patch)
tree4c1788b6887bbe593e678705296d34a9505fdabb /src/flake8/defaults.py
parent08492ee857a16a1f6d3b942456de7010e3f0d03f (diff)
downloadflake8-445d19b9de7cd87138a4d4fb07e666720625c484.tar.gz
Add link to regex101 for noqa regex
This provides a step by step doc for the regular expression, and makes iterating on it much easier
Diffstat (limited to 'src/flake8/defaults.py')
-rw-r--r--src/flake8/defaults.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flake8/defaults.py b/src/flake8/defaults.py
index 1b5d091..22304a9 100644
--- a/src/flake8/defaults.py
+++ b/src/flake8/defaults.py
@@ -35,6 +35,7 @@ NOQA_INLINE_REGEXP = re.compile(
# We do not want to capture the ``: `` that follows ``noqa``
# 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]+)?)+))?",
re.IGNORECASE,
)