-
Notifications
You must be signed in to change notification settings - Fork 35
/
tox.ini
45 lines (37 loc) · 1.01 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
[tox]
minversion = 2.0
envlist = flake8, py27, py3, misspellings
skipsdist = True
[testenv]
usedevelop = True
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv = LANGUAGE=en
whitelist_externals = sh
allowlist_externals = *
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
py.test --cov=risuclient --cov=maguiclient {posargs}
[testenv:flake8]
basepython = python2.7
commands =
flake8 --max-line-length=88 maguiclient risuclient
[testenv:venv]
commands = {posargs}
[testenv:language_es]
setenv = LANGUAGE=es
commands = py.test {posargs}
[flake8]
show-source = True
ignore = E203, E266, E501, W503, F403, F401, E402, E722, C901
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*/sumsos.py
max-line-length = 79
max-complexity = 18
select = B,C,E,F,W,T4,B9
[testenv:markdown]
commands = markdownlint .
[testenv:httpd]
commands = python -m http.server 8000
[testenv:misspellings]
commands =
bash -c 'find risuclient -name "*.py" -type f | xargs misspellings'