-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (67 loc) · 2.07 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
67
68
69
70
71
72
73
74
75
76
77
78
79
[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
# `astroid` is a dependency of pylint
# `Lama` is the name of a cited author
ignore-words-list = "astroid,Lama"
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
show-fixes = true
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"PTH", # flake8-use-pathlib
"UP", # pyupgrade
"W", # pycodestyle warning
]
ignore = [
# Do not switch to `Path.open()` because `open()` is easier to test with
# e.g., `open(data_dir / "file_a.txt")` -> `open("test/file_b.txt")`
"PTH123", # builtin-open (from flake8-use-pathlib)
]
[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`
# Disabled `consider-using-f-string` because handled by `pyupgrade`
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,
consider-using-f-string
"""
[tool.pylint.reports]
score = false