diff --git a/pyproject.toml b/pyproject.toml index eb51c41..e01bd50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,6 +81,13 @@ src = ["scripts", "src", "tests"] [tool.ruff.lint] select = ["B", "C4", "E", "F", "I", "RUF", "SIM", "UP", "W"] +[tool.ruff.lint.isort] +required-imports = ["from __future__ import annotations"] + +[tool.ruff.lint.per-file-ignores] +"scripts/**" = ["I002"] +"tests/**" = ["I002"] + [tool.mypy] strict = true python_version = "3.11" diff --git a/src/sil_lift/_extras.py b/src/sil_lift/_extras.py index f17c6e7..5636cd9 100644 --- a/src/sil_lift/_extras.py +++ b/src/sil_lift/_extras.py @@ -16,6 +16,8 @@ — so the internal representation stays swappable and no lxml type ever leaks. """ +from __future__ import annotations + from dataclasses import dataclass, field __all__ = ["Extras"]