forked from aws-deadline/deadline-cloud-for-maya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hatch.toml
49 lines (40 loc) · 1.13 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
[envs.default]
pre-install-commands = [
"pip install -r requirements-testing.txt"
]
[envs.default.scripts]
sync = "pip install -r requirements-testing.txt"
test = "pytest --cov-config pyproject.toml {args:test}"
typing = "mypy {args:src test maya_submitter_plugin/plug-ins}"
style = [
"ruff check {args:.}",
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
"style",
]
lint = [
"style",
"typing",
]
install = "python {root}/scripts/install_dev_submitter.py {args:}"
[[envs.all.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[envs.default.env-vars]
SKIP_BOOTSTRAP_TEST_RESOURCES="True"
MAYA_ENV_DIR="{root}/plugin_env"
[envs.codebuild.scripts]
build = "hatch build"
[envs.codebuild.env-vars]
SKIP_BOOTSTRAP_TEST_RESOURCES="True"
[envs.integ.scripts]
test = "pytest --no-cov {args:test/*/integ}"
[envs.e2e.scripts]
test = "pytest --no-cov {args:test/*/e2e}"
[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}"