-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
66 lines (54 loc) · 1.64 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[project]
requires-python = ">=3.11"
[tool.black]
line-length = 100
[tool.codespell]
ignore-regex = "\\[nt]" # Do not count escaped newlines or tabs as part of a word
ignore-words-list = "astroid" # Dependency of pylint
quiet-level = 0 # Display all warnings
check-filenames = ""
check-hidden = ""
[tool.mypy]
show_error_codes = true
ignore_missing_imports = true
python_version = "3.11"
strict = true
warn_unreachable = true
[tool.ruff]
fix = true
line-length = 100
[tool.ruff.lint]
ignore-init-module-imports = true
select = [
"D", # pydocstyle
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"W", # pycodestyle warning
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
[tool.ruff.lint.pycodestyle]
# Detect extra-long lines that Black can't handle
max-line-length = 250
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pylint.format]
# Let other tools handle line length
max-line-length = 250
[tool.pylint.imports]
# Need to either set this or stop using the `import X as X` that mypy wants
allow-reexport-from-package = true
[tool.pylint.messages_control]
# Most of these are disabled to prevent issues with dependencies being difficult to inspect
# pylint FAQ recommends disabling:
# wrong-import-order when using isort
# missing-module-docstring,missing-class-docstring,missing-function-docstring when using pydocstyle
disable = """
R,fixme,no-member,unsupported-membership-test,unsubscriptable-object,
unsupported-assignment-operation,not-an-iterable,too-many-lines,wrong-import-order,
missing-module-docstring,missing-class-docstring,missing-function-docstring
"""
[tool.pylint.reports]
score = false