Skip to content

Commit db9b329

Browse files
authored
build: use hatch-pip-compile for docs environment (#57)
Fixes #45
1 parent cfc9f5a commit db9b329

2 files changed

Lines changed: 582 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ packages = [
8686
[tool.hatch.version]
8787
path = "src/re3data/__about__.py"
8888

89+
[tool.hatch.env]
90+
requires = [
91+
"hatch-pip-compile",
92+
]
93+
8994
[tool.hatch.envs.default]
9095
installer = "uv"
9196
features = [
@@ -116,6 +121,12 @@ features = [
116121
"docs",
117122
]
118123
template = "docs"
124+
type = "pip-compile"
125+
pip-compile-hashes = true
126+
pip-compile-installer = "uv"
127+
pip-compile-resolver = "uv"
128+
lock-filename = "requirements/{env_name}.txt"
129+
119130
[tool.hatch.envs.docs.scripts]
120131
cli = "typer src/re3data/_cli.py utils docs --name=re3data --title='CLI Reference' --output docs/src/cli.md"
121132
build = "mkdocs build --config-file=docs/mkdocs.yml"

0 commit comments

Comments
 (0)