-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtox.ini
49 lines (40 loc) · 990 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
37
38
39
40
41
42
43
44
45
46
47
48
49
[tox]
minversion = 2.0
envlist = py27, flake8, markdown
skipsdist = True
[testenv]
basepython = python2.7
passenv = CI TRAVIS TRAVIS_*
usedevelop = True
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv = LANGUAGE=en
whitelist_externals = sh
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
ostestr {posargs}
[testenv:flake8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:language_es]
setenv = LANGUAGE=es
commands = nosetests
[flake8]
show-source = True
ignore = E402,E501,E722
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:markdown]
commands = markdownlint .
[testenv:cover]
basepython = python2.7
commands =
nosetests
[testenv:covert]
basepython = python2.7
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage report --fail-under=82 --skip-covered
[testenv:misspellings]
commands =
bash -c 'find citellusclient -name "*.py" -type f | xargs misspellings'