Clearer docs, NOQA_INLINE_REGEXP comment - fixes #469

This commit is contained in:
Jesaja Everling 2018-10-28 20:08:29 +01:00
parent 4773995430
commit cafe780514
3 changed files with 5 additions and 4 deletions

View file

@ -30,7 +30,7 @@ NOQA_INLINE_REGEXP = re.compile(
# ``# noqa: E123,W451,F921``
# ``# NoQA: E123,W451,F921``
# ``# NOQA: E123,W451,F921``
# We do not care about the ``: `` that follows ``noqa``
# 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
r"# noqa(?:: (?P<codes>([A-Z][0-9]+(?:[,\s]+)?)+))?",