-
Notifications
You must be signed in to change notification settings - Fork 1
/
hatch.toml
29 lines (28 loc) · 852 Bytes
/
hatch.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
[envs.default]
features = ["test", "lint"]
[envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = ["- coverage combine", "coverage report --show-missing"]
cov-xml = "coverage xml"
cov = ["test-cov", "cov-report", "cov-xml"]
typing = "mypy {args:pulseeco tests}"
style = [
"ruff check {args:pulseeco tests}",
"ruff format --check --diff {args:pulseeco tests}",
]
fmt = [
"ruff check --fix {args:pulseeco tests}",
"ruff format {args:pulseeco tests}",
]
lint = ["style", "typing"]
# meant to be used locally
[envs.dev]
python = "3.8"
features = ["dev"]
[envs.dev.scripts]
pre-commit-install = "pre-commit install"
setup = ["pre-commit-install"]
pre-commit-run = "pre-commit run --all-files"
check = ["pre-commit-run || true", "typing || true", "cov"]
docs-serve = "mkdocs serve"