-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
102 lines (89 loc) · 2.16 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "zundler"
description = "Bundle assets of distributed HTML docs into one self-contained HTML file"
readme = 'README.md'
authors = [{name = "Adrian Vollmer", email = "[email protected]"}]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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",
"Topic :: Documentation",
"Topic :: Utilities",
]
urls = {Homepage = "https://github.com/AdrianVollmer/Zundler"}
dependencies = [
"sphinx",
"lxml",
"python-magic",
]
dynamic = ["version"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "_version.py"
[tool.hatch.build.targets.sdist]
include = [
"src",
]
[project.entry-points]
"sphinx.builders" = {zundler = "zundler.sphinxext"}
[project.scripts]
zundler = "zundler.__main__:main"
[tool.mypy]
python_version = "3.8"
show_column_numbers = true
show_error_context = true
ignore_missing_imports = true
follow_imports = "skip"
incremental = true
check_untyped_defs = true
warn_unused_ignores = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
[tool.hatch.envs.default]
installer = "uv"
[tool.hatch.envs.test]
extra-dependencies = [
'pytest>=8',
'selenium',
'pytest-selenium',
'pytest-docker',
]
[tool.hatch.envs.test.scripts]
all = "pytest {args:tests}"
[tool.hatch.envs.lint]
dependencies = [
"mypy>=1.0.0",
"ruff>=0.0.243",
"pytest-stub",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:src tests}"
style = [
"ruff check {args:src tests}",
]
fmt = [
"ruff check --fix {args:src tests}",
"style",
]
all = [
"style",
"typing",
]