-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (96 loc) · 2.39 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[tool.black]
line-length = 79
target-version = ['py312']
skip-magic-trailing-comma = true
preview = true
[tool.isort]
profile = "black"
use_parentheses = true
force_single_line = true
multi_line_output = 3
include_trailing_comma = true
sections = ['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER']
lines_between_sections = 1
add_imports=[
"from __future__ import annotations",
]
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.coverage.report]
show_missing = true
fail_under = 100
skip_covered = false
[tool.pytest.ini_options]
minversion = "6.0"
markers = []
xfail_strict = true
addopts = "-v --durations=0 --durations-min=10 --doctest-modules --last-failed"
testpaths = ["."]
norecursedirs = [
# don't look at hidden files
"**/.*",
# temp files
"**/Download",
# runtime files, not version-controlled
"**/log",
"**/data",
"**/libexec",
"**/__pycache__",
"**/Library",
"**/*venv",
# home for files with separate version control
"**/repo",
##"**/vendor",
# dirty hax
"**/tmp*",
"**/*tmp",
"**/*bak",
"**/scratch",
]
python_files = ["*.py"]
python_classes = ["Describe"]
python_functions = ["it"]
[tool.pyright]
include = ["."]
exclude = [
# don't look at hidden files
"**/.*",
# temp files
"**/Download",
# runtime files, not version-controlled
"**/log",
"**/data",
"**/libexec",
"**/__pycache__",
"**/Library",
"**/*venv",
# home for files with separate version control
"**/repo",
##"**/vendor",
# dirty hax
"**/tmp*",
"**/*tmp",
"**/*bak",
"**/scratch",
]
follow_imports_for_stubs = true
pythonPlatform = "Linux"
pythonVersion = "3.12"
extraPaths = [
"venv/lib/python3.12/site-packages/"
]
typeCheckingMode = "strict"
# don't flag arguments as long as its type is known
reportMissingParameterType = "none"
reportUnknownParameterType = "error"
# turn on all the checks not already enabled by "strict":
reportCallInDefaultInitializer = "error"
reportImplicitStringConcatenation = "error"
reportMissingSuperCall = "error"
reportPropertyTypeMismatch = "error"
reportUninitializedInstanceVariable = "error"
reportUnnecessaryTypeIgnoreComment = "error"
reportUnusedCallResult = "none" # too noisy
# maintainer has an strong anti-idomatic stance on what "constant" means
# https://github.com/microsoft/pyright/issues/5265
reportConstantRedefinition = false