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

@@ -794,7 +794,7 @@ def test_resource_warning(pytester: Pytester, monkeypatch: pytest.MonkeyPatch) -
# available, using `importorskip("tracemalloc")` for example,
# because we want to ensure the same code path does not break in those platforms.
try:
import tracemalloc # noqa
import tracemalloc # noqa: F401
has_tracemalloc = True
except ImportError: