forked from aws-deadline/deadline-cloud-worker-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hatch.toml
50 lines (43 loc) · 1.36 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[envs.default]
pre-install-commands = [
"pip install -r requirements-testing.txt"
]
[envs.default.scripts]
sync = "pip install -r requirements-testing.txt"
test = "pytest test/unit --numprocesses=auto {args}"
# Don't pass --numprocesses here so that tests run sequentially.
# pytest-xdist does not allow live output of stdout, meaning integ tests only show output after the test is done
# See: https://pytest-xdist.readthedocs.io/en/stable/known-limitations.html#output-stdout-and-stderr-from-workers
version = "hatch version"
metadata = "hatch project metadata {args:}"
e2e-test= "pytest --no-cov test/e2e {args:}"
windows-integ-test = "pytest --no-cov test/integ/installer {args:}"
typing = "mypy {args:src test}"
style = [
"ruff check {args:.}",
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
"style",
]
lint = [
"style",
"typing",
]
[envs.research]
pre-install-commands = [
"pip install -r requirements-research.txt ."
]
[envs.research.scripts]
sync = "pip install -r requirements-research.txt"
[[envs.all.matrix]]
python = ["3.9", "3.10", "3.11"]
[envs.default.env-vars]
RUN_AS_ADMIN="true"
[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}"