forked from sphinx-contrib/spelling
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (82 loc) · 2.98 KB
/
pyproject.toml
File metadata and controls
96 lines (82 loc) · 2.98 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "sphinxcontrib-spelling"
readme = "README.rst"
authors = [{ name = "Doug Hellmann", email = "doug@doughellmann.com" }]
description = "Sphinx spelling extension"
dynamic = ["version"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Documentation",
"Topic :: Utilities",
]
requires-python = ">=3.10"
dependencies = ["PyEnchant>=3.1.1", "Sphinx>=3.0.0", "requests>=2.32.3"]
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "coverage!=4.4,>=4.0"]
[project.entry-points."sphinx.builders"]
spelling = "sphinxcontrib.spelling"
[project.urls]
homepage = "https://sphinxcontrib-spelling.readthedocs.io/en/latest/"
repository = "https://github.com/sphinx-contrib/spelling"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "sphinxcontrib/spelling/version.py"
[tool.hatch.build.targets.sdist]
exclude = [".github", "cover", ".mergify.yml", ".gitignore"]
[tool.hatch.build.targets.wheel]
only-include = ["sphinxcontrib"]
[tool.hatch.envs.docs]
dependencies = ["sphinx"]
[tool.hatch.envs.docs.env]
ENABLE_SPELLING = "1"
[tool.hatch.envs.docs.scripts]
build = [
"sphinx-build -W -j auto -b html -d docs/build/doctrees docs/source docs/build/html",
"sphinx-build -W -j auto -b linkcheck -d docs/build/doctrees docs/source docs/build/linkcheck",
"sphinx-build -W -j auto -b spelling -d docs/build/doctrees docs/source docs/build/spelling",
]
check = "sphinx-build -W -j auto -b spelling -d docs/build/doctrees docs/source docs/build/spelling"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"coverage!=4.4,>=4.0",
"ruff",
"twine",
"check-python-versions",
]
[tool.hatch.envs.test.scripts]
test = "python -m pytest --cov=sphinxcontrib.spelling --cov-report term-missing --log-level DEBUG tests"
lint = [
"ruff check sphinxcontrib integration_tests tests",
"ruff format --check sphinxcontrib integration_tests tests",
]
lint-fix = ["ruff format sphinxcontrib integration_tests tests"]
pkglint = [
"hatch build",
"twine check dist/*.tar.gz dist/*.whl",
"check-python-versions --only pyproject.toml,.github/workflows/test.yml",
]
[tool.hatch.envs.integration]
dependencies = ["tox"]
[tool.hatch.envs.integration.scripts]
django = "./integration_tests/build_django.py"
[tool.ruff]
exclude = ["sphinxcontrib/spelling/version.py"]