Enable lint PGH004 - Use specific rule codes when using noqa

This commit is contained in:
Ran Benita
2024-02-09 11:14:36 +02:00
parent d1ee6d154f
commit a182e10b06
8 changed files with 9 additions and 8 deletions

View File

@@ -172,7 +172,7 @@ class TestRaises:
raise ValueError("demo error")
def test_tupleerror(self):
a, b = [1] # NOQA
a, b = [1] # noqa: F841
def test_reinterpret_fails_with_print_for_the_fun_of_it(self):
items = [1, 2, 3]
@@ -180,7 +180,7 @@ class TestRaises:
a, b = items.pop()
def test_some_error(self):
if namenotexi: # NOQA
if namenotexi: # noqa: F821
pass
def func1(self):