forked from zopefoundation/Zope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
100 lines (91 loc) · 2.09 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[tox]
# If adding or removing envs here please update the testenv:coverage-report
# section as well:
envlist =
py35,
py36,
py37,
py38,
py39,
lint-py36
coverage-report
[testenv]
coverage_run = {env:WIN_COV:coverage run}
commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test alltests
{[testenv]coverage_run} {envdir}/bin/alltests {posargs:-vc}
skip_install = true
deps =
-cconstraints.txt
coverage
setuptools>=36.2
zc.buildout>=2.12
setenv =
COVERAGE_FILE=.coverage.{envname}
[testenv:coverage-report]
basepython = python3.6
depends =
py27,
py35,
py36,
py37,
py38,
deps =
-cconstraints.txt
coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage erase
coverage combine
coverage html -i
coverage xml -i
coverage report -i --fail-under=80
[testenv:isort-apply]
basepython = python3.6
skip_install = true
deps =
-cconstraints.txt
isort
commands =
isort --apply --recursive {toxinidir}/src {toxinidir}/docs setup.py {posargs}
[testenv:autopep8]
basepython = python3.6
skip_install = true
deps =
-cconstraints.txt
autopep8
docformatter
commands =
autopep8 --verbose --in-place --recursive --aggressive --aggressive {toxinidir}/src setup.py
docformatter --in-place --recursive {toxinidir}/src setup.py
[testenv:lint-py36]
basepython = python3.6
skip_install = true
deps =
-cconstraints.txt
isort
flake8
# helper to generate HTML reports:
flake8-html
# Useful flake8 plugins that are Python and Plone specific:
flake8-coding
flake8-debugger
flake8-deprecated
flake8-todo
flake8-isort
mccabe
# Potential flake8 plugins that should be used: # TBD
#flake8-blind-except
#flake8-commas
#flake8-docstrings
#flake8-mypy
#flake8-pep3101
#flake8-plone-hasattr
#flake8-string-format
#flake8_strict
#flake8-quotes
commands =
- isort --check-only --recursive {toxinidir}/src setup.py
flake8 src docs setup.py