mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-11-01 02:57:01 -04:00
34 lines
844 B
TOML
34 lines
844 B
TOML
[project]
|
|
requires-python = ">=3.8"
|
|
|
|
[tool.ruff]
|
|
line-length = 160
|
|
target-version = 'py38'
|
|
builtins = ['_']
|
|
|
|
[tool.ruff.lint]
|
|
ignore = ['E741', 'E402', 'E722', 'E401']
|
|
select = ['E', 'F', 'I']
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"src/calibre/ebooks/unihandecode/unicodepoints.py" = ["E501"]
|
|
"src/qt/__init__.py" = ["E501"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = 'single'
|
|
|
|
[tool.ruff.lint.isort]
|
|
detect-same-package = true
|
|
extra-standard-library = ['aes', 'elementmaker', 'encodings']
|
|
known-first-party = ["calibre_extensions", 'polyglot']
|
|
known-third-party = ["qt"]
|
|
relative-imports-order = "closest-to-furthest"
|
|
split-on-trailing-comma = false
|
|
section-order = ['__python__', "future", "standard-library", "third-party", "first-party", "local-folder"]
|
|
|
|
[tool.ruff.lint.isort.sections]
|
|
'__python__' = ['__python__']
|
|
|
|
[tool.pylsp-mypy]
|
|
enabled = false
|