Fix minimum required Python version for ruff, black and pyupgrade

This commit is contained in:
Paolo Melchiorre 2023-11-22 11:37:17 +01:00
parent e873111bdc
commit 16fbab9362
No known key found for this signature in database
GPG Key ID: 5F8222398E1ED035
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[tool.ruff]
line-length = 160
target-version = 'py37'
target-version = 'py38'
select = ['E', 'F']
ignore = ['E741', 'E402', 'E722', 'E401']
builtins = ['_']
@ -10,7 +10,7 @@ builtins = ['_']
"src/qt/__init__.py" = ["E501"]
[tool.black]
target-version = ['py37']
target-version = ['py38']
[tool.isort]
profile = "black"

View File

@ -137,4 +137,4 @@ class UpgradeSourceCode(Command):
if '/metadata/sources/' in q or '/store/stores/' in q:
continue
files.append(q)
subprocess.call(['pyupgrade', '--py37-plus'] + files)
subprocess.call(['pyupgrade', '--py38-plus'] + files)