forked from beancount/fava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (67 loc) · 1.33 KB
/
pyproject.toml
File metadata and controls
75 lines (67 loc) · 1.33 KB
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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.black]
line-length = 79
[tool.mypy]
mypy_path = "stubs"
strict = true
[tool.pylint.'messages control']
disable = [
"too-few-public-methods",
"too-many-instance-attributes",
"not-callable", # false positive for Beancount Entries
"wrong-import-order",
"isinstance-second-argument-not-valid-type"
]
[tool.pylint.design]
# max args for a function / method
max-args = 7
[tool.pylint.similarities]
ignore-imports = true
[tool.ruff]
target-version = "py36"
extend-select = [
"B",
"D",
"C4",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"TID",
"UP",
"W",
"YTT",
]
extend-ignore = [
"D102", # allow undocumented methods
"D105", # allow magic methods to be undocumented
"D107", # allow __init__ to be undocumented - the class should be.
# Copied from ruff's readme for "Google style" docstrings:
"D203",
"D212",
"D213",
"D214",
"D215",
"D404",
"D405",
"D406",
"D407",
"D408",
"D409",
"D410",
"D411",
"D413",
"D415",
"D416",
"D417",
]
[tool.ruff.per-file-ignores]
"contrib/**" = ["D"]
"docs/**" = ["D"]
"tests/**" = ["D"]
"src/fava/core/filters.py" = ["D"]