forked from lttng/lttng-analyses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (38 loc) · 1.29 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
[tox]
minversion = 1.9
envlist = py3,pep8
skipsdist = True
toxworkdir = {env:TOXWORKDIR:.tox}
passenv=BABELTRACE_*
[testenv]
skip_install = True
sitepackages = True
setenv =
PYTHONPATH = {env:PYTHONPATH:}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = py.test --cov-config .coveragerc --cov=lttnganalyses --basetemp={envtmpdir} tests {posargs}
[testenv:noutf8]
setenv =
LC_ALL=C
PYTHONPATH = {env:PYTHONPATH:}
commands = py.test --cov-config .coveragerc --cov=lttnganalyses --basetemp={envtmpdir} tests {posargs}
[testenv:pep8]
commands = flake8 --ignore=E123,E125,W503,W504
[testenv:longregression]
commands = py.test --cov-config .coveragerc --cov=lttnganalyses --basetemp={envtmpdir} tests_long_regression {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,W503,W504
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,versioneer.py,lttnganalyses/_version.py,tests/__init__.py
[testenv:pylint-errors]
deps = pylint >= 1.6
commands = pylint -f colorized -E lttnganalyses
[testenv:pylint-warnings]
deps = pylint >= 1.6
commands = pylint -f colorized -d all -e W -r n lttnganalyses
[testenv:pylint-full]
deps = pylint >= 1.6
commands = pylint -f colorized --disable=all -e R,E,W lttnganalyses