mirror of
https://github.com/PyCQA/flake8.git
synced 2026-07-03 02:19:30 +00:00
Only honor noqa in comments
This commit is contained in:
parent
bb943328ef
commit
6e5c5cdc27
3 changed files with 36 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ from flake8.violation import Violation
|
|||
("E111", "a = 1 # noqa - We do not care", True),
|
||||
("E111", "a = 1 # noqa: We do not care", True),
|
||||
("E111", "a = 1 # noqa:We do not care", True),
|
||||
("E111", "a = '# noqa'", False),
|
||||
("ABC123", "a = 1 # noqa: ABC123", True),
|
||||
("E111", "a = 1 # noqa: ABC123", False),
|
||||
("ABC123", "a = 1 # noqa: ABC124", False),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue