-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
42 lines (38 loc) · 780 Bytes
/
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
[tox]
envlist =
quality
check-dist
py27
py35
py36
# tox-travis block: mark quality as part of the python3.6 build
[travis]
python =
3.6: py36, quality
[testenv]
passenv =
PYTHONWARNINGS
CI TRAVIS TRAVIS_*
deps =
coverage
codecov
extras = tests
commands =
coverage run --source=polint,tests --branch -m unittest discover
codecov
[testenv:quality]
basepython = python3.6
# Do not fail on first error, but run all the checks
ignore_errors = True
deps =
extras = quality
commands =
isort --recursive --check-only --diff polint.py tests
flake8 --format=pylint --show-source polint.py tests
pydocstyle polint.py
[testenv:check-dist]
deps =
twine
commands =
python setup.py clean --all sdist
twine check dist/*