mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Switch to ruff based isort
This commit is contained in:
parent
ce370fa47f
commit
63289d8294
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user