-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
72 lines (64 loc) · 1.27 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[tox]
requires =
tox>=4.2
no_package = true
[testenv]
deps =
.[testing]
commands =
pytest {posargs}
[testenv:check]
deps =
.[testing]
mypy
commands =
mypy snaphelpers integration_tests {posargs}
[testenv:coverage]
deps =
.[testing]
pytest-cov
commands =
pytest --cov snaphelpers/ tests/ {posargs}
[testenv:docs]
deps =
-r docs/requirements.txt
.
commands =
sphinx-build -b html docs html {posargs}
[testenv:format]
deps =
black
isort
pyproject-fmt
tox-ini-fmt
commands =
isort {[base]lint_files}
black -q {[base]lint_files}
- pyproject-fmt pyproject.toml test-snap/testapp/pyproject.toml
- tox-ini-fmt tox.ini
[testenv:lint]
deps =
black
flake8
flake8-pyproject
isort
pyproject-fmt
commands =
isort --check-only --diff {[base]lint_files}
black --check {[base]lint_files}
flake8 {[base]lint_files}
pyproject-fmt --check pyproject.toml test-snap/testapp/pyproject.toml
[testenv:test-snap-snapcraft-yaml]
deps =
Jinja2
PyYAML
commands =
python test-snap/render_snapcraft_yaml.py {posargs}
[base]
lint_files =
integration_tests/ \
snap/local/bin/snap-helpers-shell \
snaphelpers/ \
test-snap/render_snapcraft_yaml.py \
test-snap/testapp/ \
tests/