forked from viper-framework/viper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
71 lines (63 loc) · 1.02 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
61
62
63
64
65
66
67
68
69
70
71
# TOX Setup
[tox]
envlist =
pep8
py34
py35
py36
py37
[testenv]
deps =
-U
tox
pytest
pytest-cov
pytest-django
coverage
codecov
mock
setuptools_scm
-rrequirements-dev.txt
-rrequirements-web.txt
# -rrequirements.txt
setenv =
HOME = {toxworkdir}
passenv = CI TRAVIS TRAVIS_*
whitelist_externals =
git
bash
rm
python
commands =
git submodule sync -q
git submodule update --init
rm -rf {toxworkdir}/.viper
bash -c 'echo "exit" | python viper-cli'
python manage.py collectstatic
pytest {posargs}
codecov
rm -rf {toxworkdir}/.viper
# Style/Lint
[testenv:pep8]
deps = flake8
commands = flake8 . viper-api viper-cli
# Flake8 Configuration
[flake8]
max-line-length = 400
exclude =
.tox,
.git,
.build,
__pycache__,
docs/source/conf.py,
build,
dist,
old,
tests/fixtures/*,
*.pyc,
*.egg-info,
.cache,
.eggs,
viper/modules/pymacho_helper,
viper/modules/pdftools,
tests