-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
94 lines (74 loc) · 1.6 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
[tox]
requires =
# Pin virtualenv to the last version supporting 2.7 and 3.6
virtualenv<=20.21.1
pip<23.2
ignore_basepython_conflict = True
envlist =
lint
copyright
docs
coverage
py27
py3{12,11,10,9,8,7,6}
pypy{27,310}
[testenv]
basepython = python3.13
download = True
passenv = TERM*
deps =
py{27,py27}: mock
commands =
{envpython} -c "import sys, struct; print(sys.version); print(str(struct.calcsize('P') * 8) + '-bit')"
{envpython} -m unittest discover -s {toxinidir}/tests {posargs}
[testenv:coverage]
passenv =
CI
TERM*
CODECOV_*
GITHUB_*
deps =
coverage
commands =
coverage run -m unittest discover -s {toxinidir}/tests {posargs}
coverage xml
coverage report
[testenv:flake8]
skip_install = True
deps =
flake8
commands =
flake8
[testenv:pylint]
skip_install = True
ignore_errors=True
deps =
pylint
pyenchant
commands =
pylint jinxed tests setup.py
[testenv:copyright]
skip_install = True
ignore_errors = True
commands =
{envpython} setup_helpers.py copyright
[testenv:lint]
skip_install = True
ignore_errors=True
deps =
{[testenv:flake8]deps}
{[testenv:pylint]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}
[testenv:docs]
deps =
sphinx
sphinxcontrib-spelling
sphinx_rtd_theme
commands=
{envpython} setup_helpers.py spelling-clean
sphinx-build -vWEa --keep-going -b spelling doc build/doc
{envpython} setup_helpers.py spelling
sphinx-build -vWEa --keep-going -b html doc build/doc
{envpython} setup_helpers.py rst2html README.rst