-
Notifications
You must be signed in to change notification settings - Fork 0
/
hatch.toml
56 lines (48 loc) · 978 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[version]
path = "src/mustopt/__about__.py"
[envs.default]
type = "virtual"
path = "venv"
[envs.test]
type = "virtual"
path = "venv"
dependencies = [
"coverage[toml]",
"mypy",
"pyhamcrest",
"pytest",
"ruff",
]
[[envs.test.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
[envs.test.scripts]
test-lint = "ruff check {args:src/mustopt tests}"
test-pytest = "pytest {args:tests}"
test-mypy = "mypy --install-types --non-interactive {args:src/mustopt tests}"
check = [
"test-lint",
"test-pytest",
"test-mypy",
]
lint-format = "ruff format {args:src/mustopt tests}"
lint-fix = "ruff check --fix {args:src/mustopt tests}"
lint = [
"lint-format",
"lint-fix",
]
test-coverage = "coverage run -m pytest {args:tests}"
coverage-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-coverage",
"coverage-report",
]
[build.targets.sdist]
exclude = [
"/.*",
"/venv*",
]
[build.targets.wheel]
packages = ["src/mustopt"]