-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
41 lines (36 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
[tox]
minversion = 3.1.2
skip_missing_interpreters = true
envlist =
py36
py36-lint
py36-type
py36-docs
[testenv]
description = run the test suite with (basepython)
deps = -rrequirements-test.txt
commands = pytest {posargs}
[testenv:py36-lint]
description = check the code style
basepython = python3.6
commands =
black -v --check {toxinidir}
flake8 {toxinidir}/edgePy
pylint {toxinidir}/edgePy --errors-only --output-format=colorized
[testenv:py36-type]
description = type check the library
basepython = python3.6
commands = mypy {toxinidir}/edgePy
[testenv:py36-docs]
description = test building of HTML docs
basepython = python3.6
deps: -rdocs/requirements-docs.txt
commands = sphinx-build docs/source {toxworkdir}/docs/_build -a --color -W -bhtml {posargs}
[testenv:dev]
description = the official edgePy development environment
envdir = venv
basepython = python3.6
usedevelop = True
commands =
python -m pip list --format=columns
python -c 'print("\n\nTo activate type: `source venv/bin/activate`\n\n")'