mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix minimum required Python version for ruff, black and pyupgrade
This commit is contained in:
parent
e873111bdc
commit
16fbab9362
@ -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"
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user