-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
46 lines (39 loc) · 902 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]
minversion = 1.6
skipsdist = True
envlist = py38,py37,py36,black,flake
[testenv]
setenv = VIRTUAL_ENV={envdir}
whitelist_externals = true
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
commands =
pytest \
-o log_cli=true \
--log-cli-level=DEBUG \
--cov-report xml \
--cov-report term \
--cov=gcasc \
--verbose \
--color=yes \
--junitxml=out_report.xml \
./tests
[testenv:flake]
commands =
flake8 {posargs} gcasc/
[testenv:black]
basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
black
commands =
black {posargs} gcasc
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python3 setup.py build_sphinx
[flake8]
exclude = .git,.venv,.tox,dist,doc,*egg,build,
ignore = E501, W503