forked from Chaffelson/nipyapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (45 loc) · 1001 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[tox]
envlist = python2, python3old, python3new, flake8, lint
[travis]
python =
3.7: python3old
3.11: python3new
2.7: python2
[flake8]
exclude =
nipyapi/registry
nipyapi/nifi
tests
[testenv:lint]
basepython=python3
deps=
pylint
pyflakes
commands=
pylint nipyapi --rcfile=pylintrc
[testenv:flake8]
basepython=python3
deps=flake8>=3
commands=
flake8 --ignore=R0801,R0912,R0902,R0903,R1718,R0913,C0302 --exclude=nipyapi/registry,nipyapi/nifi,tests nipyapi
[coverage:run]
include =
# Include the NiPyApi code
nipyapi/*
omit =
# Do not include procedurally generated swagger clients, docs or demos
nipyapi/nifi/*
nipyapi/registry/*
nipyapi/demo/*
nipyapi/docs/*
[testenv]
setenv =
PYTHONPATH = {toxinidir}
passenv = *
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements.txt
commands =
pip install -U pip
coverage run -m py.test --basetemp={envtmpdir} -x --log-cli-level=WARNING
- coveralls