forked from TomerFi/aioswitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (47 loc) · 1.2 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
[tox]
envlist =
manifest
lint
pylint
typing
py{35, 36, 37}
cov
skip_missing_interpreters = true
[testenv]
passenv =
CI
TRAVIS
TRAVIS_*
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
commands =
pytest -vsx
[testenv:manifest]
basepython = {env:PYTHON3_PATH:python3}
skip_install = true
deps =
check-manifest == 0.38
commands =
check-manifest -v
[testenv:lint]
basepython = {env:PYTHON3_PATH:python3}
skip_install = true
commands =
flake8 --statistics --count --doctests {toxinidir}/src/ {toxinidir}/tests/
pydocstyle -v --count {toxinidir}/src/ {toxinidir}/tests/
pycodestyle -v --statistics --show-pep8 --count {toxinidir}/src/ {toxinidir}/tests/
[testenv:pylint]
basepython = {env:PYTHON3_PATH:python3}
skip_install = true
commands =
pylint --disable fixme --rcfile {toxinidir}/pylintrc {toxinidir}/src/ {toxinidir}/tests/
[testenv:typing]
basepython = {env:PYTHON3_PATH:python3}
skip_install = true
commands =
mypy --config-file {toxinidir}/mypy.ini {toxinidir}/src/ {toxinidir}/tests/
[testenv:cov]
basepython = {env:PYTHON3_PATH:python3}
commands =
pytest -vs --cov --cov-append --cov-config={toxinidir}/.coveragerc