-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
60 lines (53 loc) · 1.48 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
48
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
envlist = py10, flake8, jshint
minversion = 3.1.0
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-e .
commands =
django-admin collectstatic --noinput --settings=langstroth.settings_test
django-admin test --settings=langstroth.settings_test --exclude-tag selenium {posargs}
[testenv:flake8]
deps =
hacking
pbr
commands = flake8 langstroth
[testenv:jshint]
deps =
nodeenv
pbr
commands = nodeenv -p
npm install --prefix {envdir} jshint
{envdir}/node_modules/jshint/bin/jshint .
[testenv:jscs]
deps =
nodeenv
pbr
commands = nodeenv -p
npm install --prefix {envdir} jscs
{envdir}/node_modules/jscs/bin/jscs --reporter inline .
[testenv:coverage]
deps =
{[testenv]deps}
coverage
commands =
coverage run --source='.' manage.py test --settings=langstroth.settings_test --exclude-tag selenium {posargs}
coverage report
[testenv:selenium]
passenv = DISPLAY
TMPDIR
GH_TOKEN
commands = django-admin test --settings=langstroth.settings_selenium --tag selenium {posargs}
[flake8]
builtins = _
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*/migrations/*
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405,W503
# To get a list of functions that are more complex than 25, set max-complexity
# to 25 and run 'tox -epep8'.
max-complexity=25