SCons: Integrate annotations where relevant
• Expand Ruff linter to catch & upgrade legacy type-hint syntax
This commit is contained in:
@ -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}" = [
|
||||
|
||||
Reference in New Issue
Block a user