-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
66 lines (59 loc) · 1.44 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
[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=43.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.docformatter]
in-place = true
recursive = true
wrap-summaries = 88
wrap-descriptions = 81
[tool.pylint.BASIC]
# Stick to snake case, but accept setUp and tearDown from unittest
method-rgx = "(([a-z_][a-z0-9_]*)|(setUp)|(tearDown))$"
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint.MASTER]
# Add files or directories to the blacklist. They should be base names, not paths.
ignore = ["venv"]
[tool.pylint."MESSAGES CONTROL"]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence = ""
disable = [
"missing-function-docstring",
"import-error", # disabled since pre-commit runs pylint in a separate venv
"unspecified-encoding",
"fixme",
"too-few-public-methods"
]
[tool.ruff]
fix = true
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A",
"ANN",
"ARG",
"COM", # Done via formatter
"D",
"DTZ001", # TODO: Enable
"E402", # TODO
"E501", # Done via formatter
"EM101", # TODO
"EM102", # TODO
"ERA001", # TODO
"FA100", # TODO
"FBT",
"FIX",
"INP",
"NPY002", # TODO
"PERF203",
"PT", # We don't use pytest here
"S",
"SIM105", # TODO
"T",
"TRY003", # TODO
"TD"
]