This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
166 lines (153 loc) · 2.96 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[build-system]
requires = [
"setuptools>=36.2.1", # environment markers
"setuptools_scm",
"wheel",
]
[tool.setuptools_scm]
write_to = "src/update_pip_constraints/version.py"
[tool.coverage.run]
branch = true
source = ["src"]
[tool.mypy]
disallow_incomplete_defs = true
disallow_untyped_defs = true
files = [
"**/*.py",
"**/*.pyi",
]
show_error_codes = true
warn_unused_configs = true
[[tool.mypy.overrides]]
check_untyped_defs = true
disallow_incomplete_defs = false
disallow_untyped_defs = false
module = ["tests.*"]
[tool.pyright]
include = [
"src",
"tests",
]
reportGeneralTypeIssues = false
reportPrivateImportUsage = false
reportUnboundVariable = false
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedImport = true
reportUnusedVariable = true
typeCheckingMode = "strict"
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--doctest-continue-on-failure",
"--doctest-modules",
"--durations=3",
]
filterwarnings = [
"error",
"ignore:Creating a LegacyVersion has been deprecated.*:DeprecationWarning",
"ignore:Distutils was imported before Setuptools.*:UserWarning",
"ignore:The distutils package is deprecated.*:DeprecationWarning",
"ignore:The distutils.sysconfig module is deprecated.*:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
"ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning",
'ignore:Setuptools is replacing distutils\.:UserWarning',
]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
testpaths = [
"src",
"tests",
]
[tool.ruff]
preview = true
show-fixes = true
src = [
"src",
"tests",
]
target-version = "py37"
[tool.ruff.format]
docstring-code-format = true
line-ending = "lf"
[tool.ruff.lint]
extend-select = [
"A",
"B",
"BLE",
"C4",
"C90",
"D",
"EM",
"ERA",
"I",
"ICN",
"INP",
"ISC",
"N",
"NPY",
"PGH",
"PIE",
"PL",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"T20",
"TCH",
"TID",
"TRY",
"UP",
"YTT",
]
ignore = [
"D101",
"D102",
"D103",
"D105",
"D107",
"D203",
"D213",
"D407",
"D416",
"E501",
"ISC001",
"PLW1514",
"SIM108",
"UP036",
]
task-tags = ["cspell"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"setup.py" = ["D100"]
"src/update_pip_constraints/__init__.py" = ["E402"]
"tests/*" = [
"D",
"INP001",
"PGH001",
"PLC2701",
"PLR0913",
"PLR2004",
"PLR6301",
"S101",
"T20",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = false
ignore_case = true
in_place = true
sort_first = [
"build-system",
"project",
"tool.setuptools",
"tool.setuptools_scm",
]
sort_table_keys = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true