Switch to ruff based isort

This commit is contained in:
Kovid Goyal 2024-03-30 09:24:18 +05:30
parent ce370fa47f
commit 63289d8294
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -8,7 +8,7 @@ builtins = ['_']
[tool.ruff.lint] [tool.ruff.lint]
ignore = ['E741', 'E402', 'E722', 'E401'] ignore = ['E741', 'E402', 'E722', 'E401']
select = ['E', 'F'] select = ['E', 'F', 'I']
[tool.ruff.lint.per-file-ignores] [tool.ruff.lint.per-file-ignores]
"src/calibre/ebooks/unihandecode/unicodepoints.py" = ["E501"] "src/calibre/ebooks/unihandecode/unicodepoints.py" = ["E501"]
@ -17,14 +17,13 @@ select = ['E', 'F']
[tool.ruff.format] [tool.ruff.format]
quote-style = 'single' quote-style = 'single'
[tool.isort] [tool.ruff.lint.isort]
profile = "black" detect-same-package = true
combine_as_imports = true extra-standard-library = ['aes', 'elementmaker', 'encodings']
multi_line_output = 5 known-first-party = ["calibre_extensions", 'polyglot']
known_future_library = "__python__" known-third-party = ["qt"]
known_third_party = "qt" relative-imports-order = "closest-to-furthest"
known_standard_library = "aes,elementmaker,encodings" split-on-trailing-comma = false
known_first_party = "calibre_extensions"
[tool.pylsp-mypy] [tool.pylsp-mypy]
enabled = false enabled = false