SCons: Integrate annotations where relevant

• Expand Ruff linter to catch & upgrade legacy type-hint syntax
This commit is contained in:
Thaddeus Crews
2024-11-24 10:14:16 -06:00
parent 235a32ad11
commit 11fc998368
9 changed files with 116 additions and 104 deletions

View File

@ -20,8 +20,13 @@ target-version = "py38"
[tool.ruff.lint]
extend-select = [
"I", # isort
"I", # isort
"UP006", # Use {to} instead of {from} for type annotation
"UP007", # Use `X | Y` for type annotations
"UP037", # Remove quotes from type annotation
"FA", # Future annotations
]
extend-safe-fixes = ["UP006", "UP007", "FA"]
[tool.ruff.lint.per-file-ignores]
"{SConstruct,SCsub}" = [