-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathhatch.toml
More file actions
45 lines (39 loc) · 991 Bytes
/
hatch.toml
File metadata and controls
45 lines (39 loc) · 991 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
36
37
38
39
40
41
42
43
44
45
[envs.default]
pre-install-commands = [
"pip install -r requirements-testing.txt"
]
[envs.default.scripts]
sync = "pip install -r requirements-testing.txt"
test = "pytest test/ --cov-config pyproject.toml --ignore=test/end_to_end {args}"
e2e = "pytest test/end_to_end --no-cov {args}"
typing = "mypy {args:src test}"
style = [
"ruff check {args:.}",
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
"style",
]
lint = [
"style",
"typing",
]
[envs.docs]
detached = true
dependencies = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.4.0",
]
[envs.docs.scripts]
build = "mkdocs build"
serve = "mkdocs serve"
deploy = "mkdocs gh-deploy --force"
[[envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]
[envs.release]
detached = true
[envs.release.scripts]
deps = "pip install -r requirements-release.txt"
bump = "semantic-release -v --strict version --no-push --no-commit --no-tag --skip-build {args}"
version = "semantic-release -v --strict version --print {args}"