Skip to content

Commit

Permalink
adds docs env and script
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Sep 2, 2024
1 parent 8f2e312 commit b7fd240
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,10 @@ hatch run test:cov

```
hatch run calrissian
```

### Serve the documentation

```
hatch run docs:serve
```
16 changes: 14 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,22 @@ dependencies = [
[tool.hatch.envs.test.env-vars]
RETRY_ATTEMPTS="0"

[tool.hatch.envs.default.scripts]
[tool.hatch.envs.test.scripts]
test = "hatch run nose2"
testv = "hatch run nose2 --verbose"
cov = ["coverage run --source=calrissian -m nose2", "coverage report"]

[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.docs]
skip-install = false

dependencies = [
"pdocs",
"mkdocs-material",
"mkdocs-jupyter"
]

[tool.hatch.envs.docs.scripts]
serve = "mkdocs serve"

0 comments on commit b7fd240

Please sign in to comment.