-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
34 lines (29 loc) · 800 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
[tox]
envlist = pep8,pylint,unittests
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = find ./gerrit_cli -type f -name '*.pyc' -delete
rm -rf gerrit_cli.egg-info/ AUTHORS ChangeLog
whitelist_externals = rm
find
[testenv:pep8]
basepython = python2.7
commands = {[testenv]commands}
flake8
[flake8]
show-source = True
exclude=.venv,.tox,.git,build
ignore=H202
filename=*.py
[testenv:pylint]
basepython = python2.7
commands = {[testenv]commands}
pylint gerrit_cli -E
[testenv:unittests]
basepython = python2.7
commands = {[testenv]commands}
python -m unittest discover -v -s tests