-
Notifications
You must be signed in to change notification settings - Fork 20
/
tox.ini
62 lines (58 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[tox]
envlist =
py27,
py35,
py36,
py37,
py38,
py39,
lint,
coverage,
skip_missing_interpreters = False
[testenv]
commands =
{envbindir}/buildout -nc {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
{envbindir}/test --all {posargs:-pvc}
deps =
setuptools < 52
zc.buildout
skip_install = true
setenv =
PURE_PYTHON=1
AC_PURE_PYTHON=1
[testenv:coverage]
basepython = python3
allowlist_externals =
mkdir
deps =
coverage
setuptools < 52
zc.buildout
commands =
mkdir -p {toxinidir}/parts/htmlcov
{envbindir}/buildout -nc {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
coverage run {envbindir}/test --all {posargs:-pvc}
coverage html -i
coverage report -i -m
[testenv:lint]
basepython = python3
commands_pre =
mkdir -p {toxinidir}/parts/lint
commands =
isort --check-only --diff {toxinidir}/src setup.py
- flake8 --format=html src setup.py
flake8 src setup.py
deps =
isort > 5.0
flake8
# helper to generate HTML reports:
flake8-html
# Useful flake8 plugins that are Python and Plone specific:
flake8-coding
flake8-debugger
flake8-deprecated
mccabe
flake8-commas
flake8-string-format
whitelist_externals =
mkdir