-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtox.ini
More file actions
56 lines (49 loc) · 1.61 KB
/
tox.ini
File metadata and controls
56 lines (49 loc) · 1.61 KB
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
# Tox (http://tox.testrun.org/) is a tool for running tests in multiple
# virtual env's. This configuration file will run the test suite on all
# supported python versions. To use it, run `pip install tox`
# and then run `tox` from this directory.
# http://tox.readthedocs.org/en/latest/examples.html
# https://tox.readthedocs.io/en/latest/install.html
# - `pip install tox` (Linux, e.g. ubuntu)
# - `brew install tox` (MacOS)
[tox]
envlist = py37
skipsdist = true
[testenv]
# tox is silly ... these need to be separated by a newline ...
deps =
-r ml/requirements-dev.txt
-r ml/requirements.txt
passenv = AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION
whitelist_externals = bash
find
coverage
pytest
nose2
commands =
find . -type f -name "*.pyc" -delete
pytest -c setup.cfg
[testenv:nosetests]
commands =
find . -type f -name "*.pyc" -delete
nosetests -v --detailed-errors --nocapture --with-tissue --tissue-color
coverage erase
coverage run {envbindir}/nosetests
coverage report --omit=./docs/*,./.tox/*,./.venv/*,./tests/*,
coverage html --directory=cover --omit=./docs/*,./.tox/*,./.venv/*,./tests/*,
cover-min-percentage=95
cover-package=ml
tissue-package=ml
verbosity=3
[testenv:nose2]
commands =
nosetests -v --detailed-errors --nocapture --with-tissue --tissue-color
coverage html
[testenv:flake8]
exclude=./docs/*,./.tox/*,./.venv/*,tests
include=ml
ignore=E226,E302,E41
max-line-length=120
max-complexity=8
[testenv:pep8]
commands = pep8 --max-line-length=120 --exclude=.docs/*,./.tox/*,./.venv/* --statistics .