-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
55 lines (50 loc) · 1.13 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
[tox]
skipsdist=True
envlist = lint
skip_missing_interpreters = True
[testenv]
basepython = python3
setenv = PYTHONPATH={toxinidir}
[testenv:lint]
commands =
yamllint .yamllint snap/snapcraft.yaml
pflake8
pylint --recursive=y .
black --check --diff --color .
isort --check --diff --color .
deps =
black
flake8
pyproject-flake8
flake8-docstrings
pep8-naming
flake8-colors
colorama
isort
pylint
yamllint
{[testenv:func]deps}
[testenv:reformat]
deps = {[testenv:lint]deps}
commands =
black .
isort .
[testenv:tics]
deps =
pylint
flake8
pytest
pytest-cov
-r {toxinidir}/tests/functional/requirements.txt
description = Run all tests for snap and produce coverage report
commands =
pytest {toxinidir}/tests \
-v --cov --cov-report=xml:{toxinidir}/tests/report/coverage.xml --junit-xml={toxinidir}/tests/report/tests.xml
[testenv:func]
deps =
pytest
pytest-cov
-r {toxinidir}/tests/functional/requirements.txt
commands =
pytest {toxinidir}/tests/functional \
{posargs:-v --cov --cov-report=term-missing --cov-report=html --cov-report=xml}