-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathtox.toml
More file actions
72 lines (68 loc) · 1.51 KB
/
tox.toml
File metadata and controls
72 lines (68 loc) · 1.51 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
requires = ["tox>=4"]
env_list = ["lint", "type", "py310", "py311", "py312", "py313"]
# Base testing environment
[env_run_base]
description = "run unit tests"
deps = [
"pytest>=8",
"pytest-sugar",
"pytest-cov",
"vcrpy"
]
commands = [
[
"pytest",
{ replace = "posargs", default = [
"--cov",
"--cov-report=html",
"--cov-report=xml",
"--cov-append",
"tests/test_core",
"tests/test_utils",
"tests/test_parsers",
], extend = true },
],
[
"pytest",
{ replace = "posargs", default = [
"--cov",
"--cov-report=html",
"--cov-report=xml",
"--cov-append",
"tests/test_commands",
], extend = true },
],
]
# Linting Environment
[env.lint]
description = "Run linters"
skip_install = true
deps = ["black"]
commands = [["black", { replace = "posargs", default = ["."], extend = true }]]
# Type Checking Environment
[env.type]
description = "Run type checks"
deps = [
"mypy",
"types-PyYAML",
"types-jmespath",
"types-requests",
"types-cachetools",
"types-psutil",
"pytest-mypy-plugins",
"vcrpy",
]
commands = [
[
"mypy",
{ replace = "posargs", default = [
"src",
"tests",
], extend = true },
],
]
# Black Configuration
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312', 'py313']
exclude = '/(\.git|\.tox|\.venv|_build|dist)/'