project: Extend ruff with pyupgrade checks

Check for deprecated usages in the project when running ruff check.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-04 09:38:36 +01:00 committed by Pieter De Gendt
parent 26d92b75c6
commit 53419128f0
1 changed files with 8 additions and 0 deletions

View File

@ -44,3 +44,11 @@ include-package-data = true
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["src"] where = ["src"]
namespaces = false namespaces = false
[tool.ruff.lint]
extend-select = [
"UP", # pyupgrade
]
ignore = [
"UP027", # deprecated pyupgrade rule
]