Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (142 loc) · 4.18 KB
/
Copy pathpyproject.toml
File metadata and controls
158 lines (142 loc) · 4.18 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
[project]
name = "sphinxcontrib-enum"
version = "0.3.2"
description = "Sphinx directive for documenting dataclass enums in tabular format, with support for enum-properties."
requires-python = ">=3.11,<4.0"
authors = [
{name = "Brian Kohan", email = "bckohan@gmail.com"},
]
license = "MIT"
license-files = [ "LICENSE" ]
readme = "README.md"
repository = "https://github.com/sphinx-contrib/enum"
homepage = "https://sphinxcontrib-enum.readthedocs.io"
keywords = ["sphinx", "enum", "enumeration", "dataclass", "enum-properties", "table", "documentation"]
dependencies = [
"sphinx>=8.0",
]
classifiers = [
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 4 - Beta",
"Framework :: Sphinx",
"Framework :: Sphinx :: Extension",
"Topic :: Documentation :: Sphinx",
"Topic :: Documentation",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Typing :: Typed",
"Topic :: Software Development :: Libraries",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
[tool.hatch.build.targets.wheel]
packages = ["src/sphinxcontrib_enum"]
[project.urls]
"Homepage" = "https://sphinxcontrib-enum.readthedocs.io"
"Documentation" = "https://sphinxcontrib-enum.readthedocs.io"
"Repository" = "https://github.com/sphinx-contrib/enum"
"Issues" = "https://github.com/sphinx-contrib/enum/issues"
"Changelog" = "https://sphinxcontrib-enum.readthedocs.io/en/latest/changelog.html"
[project.optional-dependencies]
# enum-properties enums are detected without importing it, this extra only installs
# a supported version alongside the extension
properties = [
"enum-properties>=2.4.0,<3.0",
]
[dependency-groups]
docs = [
"doc8>=1.1.2",
"furo>=2024.8.6",
"readme-renderer[md]>=44.0",
"sphinx>=8.0.0",
"sphinx-autobuild>=2024.10.3",
"sphinx-tabs>=3.4.7",
]
typing = [
"pyright>=1.1.390",
"mypy>=1.19.1",
]
lint = [
"ruff>=0.15.0",
"readme-renderer[md]>=43.0",
"doc8>=1.1.2",
]
coverage = ["coverage[toml]>=7.6.1"]
# regenerating the readme screenshots (just readme-images)
screenshots = ["playwright>=1.40"]
test = [
{ include-group = "coverage" },
"beautifulsoup4>=4.12.0",
"furo>=2024.8.6",
"pypdf>=6.0.0",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
]
dev = [
{ include-group = "typing" },
{ include-group = "test" },
{ include-group = "docs" },
{ include-group = "lint" },
"packaging>=24.2",
"tomlkit>=0.13.3",
"ipdb>=0.13.13",
"ipython>=8.18.1",
]
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
mypy_path = ["src"]
packages = ["sphinxcontrib_enum"]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
include = ["src/sphinxcontrib_enum"]
reportMissingImports = true
reportMissingTypeStubs = false
reportUnusedImport = true
reportDuplicateImport = true
[tool.doc8]
max-line-length = 100
sphinx = true
[tool.pytest.ini_options]
python_files = "test*.py"
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__"
# with -X warn_default_encoding (the justfile test recipes set it) our file io that
# relies on the locale's encoding fails, it is not utf-8 on windows
filterwarnings = [
"error::EncodingWarning:tests",
"error::EncodingWarning:tests\\..*",
"error::EncodingWarning:sphinxcontrib_enum.*",
]
addopts = [
"--strict-markers",
"--cov=sphinxcontrib_enum",
"--cov-branch",
"--cov-report=term-missing:skip-covered",
]
[tool.coverage.run]
branch = true
source = ["sphinxcontrib_enum"]
concurrency = ["thread", "multiprocessing"]
parallel = true
relative_files = true
command_line = "-m pytest --cov=sphinxcontrib_enum"
[tool.coverage.paths]
source = ["sphinxcontrib_enum"]
[tool.ruff]
line-length = 88
exclude = ["doc", "dist"]
target-version = "py311"
[tool.ruff.lint]
exclude = ["tests/**/*"]