-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
36 lines (30 loc) · 996 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
[tox]
minversion = 1.6
skipsdist = True
envlist = pep8,pylint
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}
# install_command = pip install -U --force-reinstall {opts} {packages}
# There is a know bug in pip, six or setuptools
# https://github.com/pypa/setuptools/issues/951#issuecomment-279150378
commands = nosetests asciipic/unittests
[testenv:pep8]
commands = flake8 asciipic{posargs}
deps = flake8
[testenv:pylint]
commands = pylint {toxinidir}/asciipic --rcfile={toxinidir}/.pylintrc {posargs}
deps = pylint
[testenv:venv]
commands = {posargs}
[nosetests]
verbosity = 3
detailed-errors = 3
[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
ignore = E125,E251,H405
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools