-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
75 lines (65 loc) · 1.39 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
73
74
75
# Tox (http://tox.testrun.org/) is a tool for running tests in multiple
# virtualenvs. This configuration file will run the test suite on all supported
# python versions. To use it, "pip install tox" and then run "tox" from this
# directory.
[tox]
envlist = py34,py35,py36,py37,py38,py39,flake8,pylint,refactory
skip_missing_interpreters = true
[testenv]
deps =
pytest
twisted
-rrequirements.txt
setenv =
PYTHONWARNINGS=all
commands =
pytest
[testenv:py38]
deps =
pytest
pytest-cov
coverage
twisted
commands =
pytest --cov=pystiebeleltron --cov-report term {posargs}
[testenv:pylint]
deps =
pylint
commands =
pylint --rcfile=tox.ini pystiebeleltron
[testenv:flake8]
deps =
flake8
commands =
flake8 pystiebeleltron
#norecursedirs=.tox .git venv
#ignore = E226
[flake8]
exclude = .tox
[testenv:refactory]
deps =
pylint
commands =
pylint -d all -e CR pystiebeleltron
[testenv:coverage]
#deps = coverage
#commands = coverage report --rcfile=tox.ini --fail-under=65
passenv = TRAVIS TRAVIS_*
deps =
coverage
coveralls
commands =
coverage report --rcfile=tox.ini --fail-under=65
coveralls --rcfile=tox.ini
# for travis-ci configuration
[travis]
python =
3.4: py34
3.5: py35
3.6: py36
3.7: py37
3.8: py38, flake8, pylint, coverage
3.9-dev: py39
# .coveragerc to control coverage.py
[report]
show_missing = True