-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
104 lines (83 loc) · 1.91 KB
/
Copy pathtox.ini
File metadata and controls
104 lines (83 loc) · 1.91 KB
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
101
102
103
104
[tox]
requires =
# This was needed when running locally or in CI without containers, but it breaks on 3.15
# But now GH Actions is configured to use Python containers
# 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{13,12,11,10,9,8,7,6,5}
pypy{27,311}
[testenv]
basepython = python3.14
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
setuptools
commands =
pylint jinxed tests setup.py
[testenv:copyright]
skip_install = True
ignore_errors = True
commands =
python 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:copyright]commands}
[testenv:codegen]
skip_install = False
commands =
{envpython} codegen_terminfo.py {posargs}
[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