From b133135f581ca1d27f42861fceccf6964f84cbe7 Mon Sep 17 00:00:00 2001 From: Roel de Jong <12800443+twiggler@users.noreply.github.com> Date: Thu, 5 Mar 2026 11:05:02 +0100 Subject: [PATCH] Harmonization of ruff configuration --- pyproject.toml | 1 + tests/test_annotations.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9885573e..f1965d4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,6 +106,7 @@ select = [ ignore = ["E203", "B904", "UP024", "ANN002", "ANN003", "ANN204", "ANN401", "SIM105", "TRY003"] [tool.ruff.lint.per-file-ignores] +"tests/**" = ["S101", "PLC0415"] "tests/_docs/**" = ["INP001"] [tool.ruff.lint.isort] diff --git a/tests/test_annotations.py b/tests/test_annotations.py index 107dc156..a135e1de 100644 --- a/tests/test_annotations.py +++ b/tests/test_annotations.py @@ -21,7 +21,7 @@ def test_cstruct_type_annotation(name: str, monkeypatch: pytest.MonkeyPatch) -> for module in [module for module in sys.modules if module in ("dissect.cstruct.cstruct")]: monkeypatch.delitem(sys.modules, module) - from dissect.cstruct import cstruct # noqa: PLC0415 + from dissect.cstruct import cstruct if name.startswith("__"): name = f"_cstruct{name}"