-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
pyproject.toml
121 lines (108 loc) · 3.25 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
[build-system]
requires = [
"setuptools>=61.2",
"setuptools_scm[toml] >= 3.5.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "doc8"
description = "Style checker for Sphinx (or other) RST documentation"
authors = [{name = "OpenStack", email = "[email protected]"}]
maintainers = [{name = "PyCQA", email = "[email protected]"}]
license = {text = "Apache 2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
keywords = [
"doc8",
"rst",
"linter",
]
requires-python = ">=3.8"
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",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/pycqa/doc8"
"Bug Tracker" = "https://github.com/pycqa/doc8/issues"
"Release Management" = "https://github.com/pycqa/doc8/releases"
CI = "https://github.com/pycqa/doc8/actions"
Documentation = "https://doc8.readthedocs.io"
Discussions = "https://github.com/pycqa/doc8/discussions"
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.scripts]
doc8 = "doc8.main:main"
[tool.pytest]
filterwarnings = [
"error",
# docutils planned change in 0.21 without clear solution yet
"ignore:The frontend.*:DeprecationWarning"
]
[[tool.mypy.overrides]]
module = [
"doc8._version",
"restructuredtext_lint",
"stevedore",
"tomli",
]
ignore_missing_imports = true
[tool.pylint.MAIN]
py-version = "3.8.0"
[tool.pylint."MESSAGES CONTROL"]
disable = [
# 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.setuptools]
# use-scm-version = "True" # Does not pass validate-pyproject
package-dir = {"" = "src"}
include-package-data = true
zip-safe = false
# These are required in actual runtime:
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/doc8/_version.py"