-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.toml
More file actions
36 lines (33 loc) · 1010 Bytes
/
tox.toml
File metadata and controls
36 lines (33 loc) · 1010 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
requires = ["tox>=4"]
env_list = ["lint", "type", "3.10", "3.11", "3.12", "3.13", "3.14"]
[env_run_base]
description = "Run unit tests"
deps = [
"pytest>=8",
"coverage>=7",
"deepdiff>=8",
]
commands = [
["coverage", "run", "--branch", "-m", "unittest", "discover", "-v", { replace = "posargs", extend = true} ],
["coverage", "report", "-m", "--omit=tests/*", "--skip-empty", { replace = "posargs", extend = true} ],
["coverage", "xml", "--omit=tests/*", "--skip-empty", { replace = "posargs", extend = true} ],
]
[env.lint]
description = "Run linters for static code analysis"
deps = [
"flake8>=7",
]
commands = [
["flake8", "siemens_standard_bom", "tests"], { replace = "posargs", extend = true} ,
]
[env.type]
description = "Run type checker"
deps = [
"mypy>=1.8",
"types-python-dateutil>=2.8",
"sortedcontainers-stubs>=2.4",
"deepdiff>=8",
]
commands = [
["mypy", "-p", "siemens_standard_bom", "-p", "tests", { replace = "posargs", extend = true} ],
]