-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
54 lines (48 loc) · 927 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
43
44
45
46
47
48
49
50
51
52
53
54
[tox]
envlist = py26,py27,py35,static,docs
[testenv]
deps=-rtest-requirements.txt
commands=pytest -v {posargs}
whitelist_externals=sh
[testenv:static]
deps=
flake8
mccabe
flake8-bugbear
pylint
-rtest-requirements.txt
commands=
flake8 \
--max-complexity 10
sh -c 'pylint more_executors tests; test $(( $? & (1|2|4|32) )) = 0'
[testenv:cov]
deps=
-rtest-requirements.txt
pytest-cov
usedevelop=true
commands=
pytest --cov-report=html --cov=more_executors {posargs}
[testenv:cov-travis]
passenv = TRAVIS TRAVIS_*
deps=
-rtest-requirements.txt
pytest-cov
coveralls
usedevelop=true
commands=
pytest --cov=more_executors {posargs}
coveralls
[testenv:docs]
deps=
sphinx
alabaster
whitelist_externals=sh
use_develop=true
commands=
sh -c '\
sphinx-build \
-D version="$(python ./setup.py --version), revision $(git rev-parse --short HEAD)" \
docs docs/_build \
'
[flake8]
max-line-length = 100