-
Notifications
You must be signed in to change notification settings - Fork 76
/
tox.ini
46 lines (40 loc) · 924 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
[tox]
envlist = py37, py312, flake8, lint
[testenv]
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements.txt
pytest
coverage
commands =
pip install -U pip
coverage run -m pytest -W ignore -W ignore::urllib3.exceptions.InsecureRequestWarning
coverage report -m
coverage xml -o coverage-{envname}.xml
[testenv:flake8]
deps = flake8
commands = flake8 nipyapi --config={toxinidir}/tox.ini -v
[testenv:lint]
deps =
pylint
pyflakes
commands = pylint nipyapi --rcfile={toxinidir}/pylintrc
[flake8]
exclude = nipyapi/registry,nipyapi/nifi,tests,docs
max-line-length = 100
[coverage:run]
source = nipyapi
omit =
nipyapi/registry/*
nipyapi/nifi/*
nipyapi/demo/*
tests/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if __name__ == .__main__.:
raise NotImplementedError
pass
except ImportError: