-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
pyproject.toml
33 lines (26 loc) · 844 Bytes
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[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