mirror of
https://github.com/PyCQA/flake8.git
synced 2026-06-30 17:20:45 +00:00
Only honor noqa in comments
This commit is contained in:
parent
bb943328ef
commit
9b41f1454a
3 changed files with 32 additions and 1 deletions
|
|
@ -31,6 +31,9 @@ from flake8.violation import Violation
|
|||
("ABC123", "a = 1 # noqa: ABC123", True),
|
||||
("E111", "a = 1 # noqa: ABC123", False),
|
||||
("ABC123", "a = 1 # noqa: ABC124", False),
|
||||
("E111", "a = '# noqa'", False),
|
||||
("E111", "a = '# noqa: E111'", False),
|
||||
("E111", "a = '# noqa' # noqa: E111", True),
|
||||
],
|
||||
)
|
||||
def test_is_inline_ignored(error_code, physical_line, expected_result):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue