Add pyupgrade linter

This ensures we use the best syntax for the minimal Python version used.
The linter found one issue, fixed with the auto-fixer.
This commit is contained in:
Martijn Pieters
2023-05-16 12:46:20 +01:00
parent daad4cf9a8
commit f7db5cceb1
2 changed files with 2 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ select = [
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"UP", # pyupgrade
]
target-version = "py37"