forked from Robpol86/terminaltables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
73 lines (65 loc) · 1.75 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
[tox]
envlist = flake8,check,requirements,py{34,33,py3,py,27,26},py{34,33,27,26}x64
skip_missing_interpreters = True
[testenv]
basepython =
py34x64: C:\Python34-x64\python.exe
py34: python3.4
py33x64: C:\Python33-x64\python.exe
py33: python3.3
pypy3: pypy3
pypy: pypy
py27x64: C:\Python27-x64\python.exe
py27: python2.7
py26x64: C:\Python26-x64\python.exe
py26: python2.6
commands =
; python -c "import os; os.system('pip install -U pdbpp==0.8.1') if '--pdb' in '{posargs}' else None"
py.test --cov-report term-missing --cov terminaltables tests {posargs}
python -c "import os, shutil; shutil.move('.coverage', os.path.join('tests', '.coverage.{envname}'))"
deps =
-rrequirements-test.txt
usedevelop = True
whitelist_externals = mv
[testenv:requirements]
basepython = python3.4
commands =
python -c "import setup; open('requirements-test.txt', 'w').write('\n'.join(setup.REQUIRES_ALL))"
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 terminaltables
deps = pylint
[testenv:flake8]
basepython = python3.4
commands = flake8
deps =
flake8
flake8-import-order==0.5
flake8-pep257
pep8-naming
[flake8]
application-import-names = terminaltables,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