-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
37 lines (31 loc) · 921 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]
envlist=py34, flake8
skipsdist=True
[testenv]
passenv = AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY DEBUG
deps=
-rrequirements.txt
pytest
coverage
commands=
python -m coverage run --source wine_quality -m pytest --strict {posargs} tests/
python -m coverage report -m
python -m coverage html
[testenv:travis]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY DEBUG
deps=
-rrequirements.txt
pytest
coverage
commands=
python -m coverage run --source api,apikit,email_filter,emails,graph,phone_filter,fdw,services,matviews,pgfunctions,lib -m pytest --strict {posargs} tests/unit
python -m coverage report -m
python -m coverage html
[testenv:flake8]
basepython = python3.4
deps =
flake8
commands =
flake8 --max-line-length 120 --ignore=E731 --exclude=.tox,.direnv,setup.py,build,dist,migrations
[flake8]
exclude = migrations/*