Merge branch 'issues/py37-clean' of https://github.com/pauloxnet/calibre

This commit is contained in:
Kovid Goyal 2023-11-23 08:31:42 +05:30
commit c08be4e428
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
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)