-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
35 lines (34 loc) · 804 Bytes
/
pyproject.toml
File metadata and controls
35 lines (34 loc) · 804 Bytes
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
[tool.hatch.envs.default]
dependencies = [
"copier",
"uv",
"mystmd"
]
scripts.copy = [
"copier copy --vcs-ref=HEAD . {args:.tmp/py-package}",
]
scripts.install = [
"copier copy --vcs-ref=HEAD . .tmp/py-package -f",
"uv pip install .tmp/py-package",
]
scripts.check = [
"copier copy --vcs-ref=HEAD . .tmp/py-package -f",
"cd .tmp/py-package && hatch run pre-commit:run -av",
]
scripts.test = [
"copier copy --vcs-ref=HEAD . .tmp/py-package -f",
"cd .tmp/py-package && hatch test -v -- -s",
]
scripts.clean = [
"ruff clean",
"rm -rf .tmp",
]
[tool.hatch.envs.docs]
detached = true
dependencies = [
"mkdocs",
"mkdocs-material"
]
scripts.build = "mkdocs build --clean --strict"
scripts.serve = "mkdocs serve --dev-addr localhost:8000"
scripts.deploy = "mkdocs gh-deploy --force"