Skip to content

Commit d967590

Browse files
authored
Harmonization of ruff configuration (#147)
1 parent 0e27409 commit d967590

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ select = [
106106
ignore = ["E203", "B904", "UP024", "ANN002", "ANN003", "ANN204", "ANN401", "SIM105", "TRY003"]
107107

108108
[tool.ruff.lint.per-file-ignores]
109+
"tests/**" = ["S101", "PLC0415"]
109110
"tests/_docs/**" = ["INP001"]
110111

111112
[tool.ruff.lint.isort]

tests/test_annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_cstruct_type_annotation(name: str, monkeypatch: pytest.MonkeyPatch) ->
2121
for module in [module for module in sys.modules if module in ("dissect.cstruct.cstruct")]:
2222
monkeypatch.delitem(sys.modules, module)
2323

24-
from dissect.cstruct import cstruct # noqa: PLC0415
24+
from dissect.cstruct import cstruct
2525

2626
if name.startswith("__"):
2727
name = f"_cstruct{name}"

0 commit comments

Comments
 (0)