-
Notifications
You must be signed in to change notification settings - Fork 85
/
tox.ini
57 lines (50 loc) · 1.21 KB
/
tox.ini
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
[tox]
envlist =
format
lint
generate
type
py311
[testenv]
commands =
pytest --version
pytest {posargs:--cov=reconcile --cov-report=term-missing --cov-report xml}
deps = -r{toxinidir}/requirements/requirements-test.txt
parallel_show_output = true
[testenv:format]
skip_install = true
commands =
ruff format --check
[testenv:lint]
skip_install = true
commands =
ruff check --no-fix
[testenv:type]
commands =
mypy --version
mypy {posargs}
deps =
-r{toxinidir}/requirements/requirements-type.txt
-r{toxinidir}/requirements/requirements-test.txt
[testenv:generate]
# We want to ensure that there is no drift between introspection.json
# and generated classes.
# Note, that this must not run parallel with the pytests generate test case.
depends = py311
allowlist_externals = git
commands =
qenerate --version
qenerate code -i reconcile/gql_definitions/introspection.json reconcile/gql_definitions
git diff --exit-code
deps = -r{toxinidir}/requirements/requirements-type.txt
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
coverage xml
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase