This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathtox.ini
60 lines (52 loc) · 1.4 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
[tox]
envlist = flake8,check,requirements,py{34,33,py3,py,27,26}
skip_missing_interpreters = True
[testenv]
commands =
py.test --cov-report term-missing --cov libnl tests {posargs}
python -c "import os, shutil; shutil.move('.coverage', os.path.join('tests', '.coverage.{envname}'))"
deps =
-rrequirements-test.txt
usedevelop = True
[testenv:requirements]
basepython = python3.4
commands =
python -c "import setup; open('requirements-test.txt', 'w').write('\n'.join(setup.REQUIRES_ALL))"
python -c "open('requirements-test.txt', 'a').write('\npdbpp==0.8.1') if '--pdb' in '{posargs}' else None"
deps =
[testenv:combine]
basepython = python3.4
changedir = tests
commands =
python -c "for f in '{posargs}'.split(): open('.coverage.' + f)"
coverage combine
deps = coverage
[testenv:check]
basepython = python3.4
commands =
python setup.py check --strict
python setup.py check --strict -m
python setup.py check --strict -s
deps =
[testenv:pylint]
basepython = python3.4
commands = pylint --rcfile=tox.ini setup.py libnl
deps = pylint
[testenv:flake8]
basepython = python3.4
commands = flake8
deps =
flake8
flake8-import-order==0.5
flake8-pep257
[flake8]
application-import-names = libnl,tests
exclude = .tox/*,build/*,get-pip.py
ignore = D203
import-order-style = google
max-line-length = 120
statistics = True
[pylint]
max-line-length=120
output-format=colorized
reports=no