-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
134 lines (119 loc) · 2.86 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "jinja_autodoc"
version = "0.1.2"
description = "Jinja domain for jinja templates"
readme = "README.md"
license = {text = "BSD License"}
requires-python = ">=3.9"
authors = [
{name = "Jaka Hudoklin", email = "jakahudoklin@gmail.com"},
]
maintainers = [
{name = "Éloi Rivard", email = "eloi.rivard@nubla.fr"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Documentation",
"Topic :: Utilities",
]
dependencies = [
"jinja2>=3.0.0",
"sphinx>=7.4.0",
]
[project.urls]
documentation = "https://jinja-autodoc.readthedocs.io"
repository = "https://github.com/sphinx-contrib/jinja-autodoc"
[dependency-groups]
dev = [
"beautifulsoup4>=4.12.3",
"mypy>=1.13.0",
"pre-commit-uv>=4.1.4",
"pytest>=8.3.4",
"pytest-regressions>=2.5.0",
"tox-uv>=1.16.0",
"pytest-cov>=6.0.0",
"types-docutils>=0.21.0.20241128",
]
doc = [
"shibuya>=2024.10.15",
"sphinx>=7.4.0",
]
[tool.hatch.build.targets.wheel]
only-include = ["jinja_autodoc"]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long
"E722", # bare-except
"D100", # public module
"D101", # public class
"D102", # public method
"D103", # public function
"D104", # public package
"D105", # magic method
"D106", # nested class
"D107", # public init
"D203", # no-blank-line-before-class
"D213", # multi-line-summary-second-line
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
packages = ["jinja_autodoc"]
ignore_missing_imports = true
[tool.tox]
requires = ["tox>=4.19"]
env_list = [
"py39",
"py310",
"py311",
"py312",
"py313",
"minversions",
"coverage",
"style",
"doc",
]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
dependency_groups = ["dev"]
commands = [
["pytest", "--showlocals", "--full-trace", "{posargs}"],
]
[tool.tox.env.style]
skip_install = true
runner = "uv-venv-runner"
commands = [
["pre-commit", "run", "--all-files", "--show-diff-on-failure"],
]
[tool.tox.env.doc]
dependency_groups = ["doc"]
commands = [
["sphinx-build", "--builder", "html", "--write-all", "--nitpicky", "doc", "build/sphinx/html"],
]
[tool.tox.env.minversions]
runner = "uv-venv-runner"
uv_resolution = "lowest-direct"
[tool.tox.env.coverage]
commands = [
["pytest", "--cov", "--cov-fail-under=100", "--cov-report", "term:skip-covered", "{posargs}"],
["coverage", "html"],
]