-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
52 lines (46 loc) · 1.08 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
[tox]
envlist = py38, linters, coverage
skipsdist = true
[flake8]
# flake8 config block to be used in here by `testenv:flake8` and also VSCode to perform linting.
max-line-length = 88
[testenv:pylint]
deps =
-r ./test-requirements.txt
commands =
pylint spine_aws_common --rcfile=.pylintrc
[testenv:flake8]
deps =
flake8
commands =
flake8 spine_aws_common
[testenv:linters]
basepython = python3.8
skip_install = true
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}
[testenv:coverage]
allowlist_externals=
/bin/sh
/usr/bin/sh
basepython = python3.8
skip_install = true
deps =
-r ./test-requirements.txt
commands =
coverage run --branch --omit *tests* --source spine_aws_common {envbindir}/pytest --quiet spine_aws_common
sh -c 'coverage report > coverage-all.txt'
coverage report -m --fail-under=60
coverage html
[testenv]
basepython = python3.8
deps =
-r ./test-requirements.txt
commands =
py38: pytest spine_aws_common
setenv =
PYTHONPATH = {toxinidir}