ruff changed how it likes to be configured

This commit is contained in:
Kovid Goyal 2024-02-05 14:42:13 +05:30
parent d4245a018b
commit 1f1e08980c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1,11 +1,13 @@
[tool.ruff]
line-length = 160
target-version = 'py38'
select = ['E', 'F']
ignore = ['E741', 'E402', 'E722', 'E401']
builtins = ['_']
[tool.ruff.per-file-ignores]
[tool.ruff.lint]
ignore = ['E741', 'E402', 'E722', 'E401']
select = ['E', 'F']
[tool.ruff.lint.per-file-ignores]
"src/calibre/ebooks/unihandecode/unicodepoints.py" = ["E501"]
"src/qt/__init__.py" = ["E501"]