-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathpyproject.toml
More file actions
220 lines (200 loc) · 4.92 KB
/
pyproject.toml
File metadata and controls
220 lines (200 loc) · 4.92 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=77.0.0",
"setuptools_scm[toml] >= 3.5.0"
]
[project]
authors = [{email = "openstack-discuss@lists.openstack.org", name = "OpenStack"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
]
dependencies = [
# Ceiled due to DeprecationWarning: The frontend.OptionParser class will be
# replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
"docutils>=0.19,<=0.21.2",
"restructuredtext-lint>=0.7",
"stevedore",
"tomli; python_version < '3.11'",
"Pygments"
]
description = "Style checker for Sphinx (or other) RST documentation"
dynamic = ["version"]
keywords = [
"doc8",
"rst",
"linter"
]
license = "Apache-2.0"
maintainers = [{email = "code-quality@python.org", name = "PyCQA"}]
name = "doc8"
requires-python = ">=3.10"
[project.readme]
content-type = "text/x-rst"
file = "README.rst"
[project.scripts]
doc8 = "doc8.main:main"
[project.urls]
"Bug Tracker" = "https://github.com/pycqa/doc8/issues"
CI = "https://github.com/pycqa/doc8/actions"
Discussions = "https://github.com/pycqa/doc8/discussions"
Documentation = "https://doc8.readthedocs.io"
Homepage = "https://github.com/pycqa/doc8"
"Release Management" = "https://github.com/pycqa/doc8/releases"
# Keep this default because xml/report do not know to use load it from config file:
# data_file = ".coverage"
[tool.coverage.paths]
source = ["src", ".tox/*/site-packages"]
[tool.coverage.report]
exclude_also = ["pragma: no cover", "if TYPE_CHECKING:"]
# Increase it just so it would pass on any single-python run
fail_under = 89
# During development we might remove code (files) with coverage data, and we dont want to fail:
ignore_errors = true
omit = ["test/*"]
partial_branches = ["pragma: no cover", "if TYPE_CHECKING:"]
show_missing = true
skip_covered = true
skip_empty = true
[tool.coverage.run]
# branch is more reliable than lines, protects against false positives
branch = true
concurrency = ["multiprocessing", "thread"]
parallel = true
source = ["src"]
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"doc8._version",
"restructuredtext_lint",
"stevedore",
"tomli"
]
[tool.pylint.MAIN]
py-version = "3.10.0"
[tool.pylint."MESSAGES CONTROL"]
disable = [
"line-too-long",
# TODO(ssbarnea): remove temporary skips adding during initial adoption:
"attribute-defined-outside-init",
"consider-using-f-string",
"invalid-name",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"too-many-nested-blocks",
"too-many-statements",
"unused-variable",
"useless-object-inheritance"
]
[tool.pylint.REPORTS]
output-format = "colorized"
[tool.pytest]
filterwarnings = [
"error",
# docutils planned change in 0.21 without clear solution yet
"ignore:The frontend.*:DeprecationWarning"
]
[tool.ruff]
fix = true
# Same as Black.
line-length = 88
preview = true
target-version = "py310"
[tool.ruff.lint]
ignore = [
"E501",
# temporary disabled until we fix them:
"A001",
"ANN",
"B007",
"BLE001",
"C410",
"C419",
"C901",
"CPY001",
"D",
"DOC",
"EM102",
"ERA001",
"FBT002",
"FBT003",
"FLY002",
"FURB101",
"FURB103",
"INP001",
"PERF401",
"PGH003",
"PGH004",
"PLR0912",
"PLR0915",
"PLR1702",
"PLR6104",
"PLR6301",
"PLW2901",
"PT009",
"PTH",
"RUF012",
"RUF059",
"S108",
"SIM102",
"SIM103",
"SIM105",
"SIM108",
"SLF001",
"T201",
"TRY003",
"UP031"
]
select = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools]
include-package-data = true
# These are required in actual runtime:
license-files = ["LICENSE"]
# use-scm-version = "True" # Does not pass validate-pyproject
package-dir = {"" = "src"}
zip-safe = false
[tool.setuptools.packages.find]
namespaces = false
where = ["src"]
[tool.setuptools_scm]
# To prevent accidental pick of mobile version tags such 'v6'
git_describe_command = [
"git",
"describe",
"--dirty",
"--long",
"--tags",
"--match",
"v*.*"
]
local_scheme = "no-local-version"
tag_regex = "^(?P<prefix>v)?(?P<version>\\d+[^\\+]*)(?P<suffix>.*)?$"
write_to = "src/doc8/_version.py"
[tool.tomlsort]
in_place = true
sort_inline_tables = true
sort_table_keys = true