-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
66 lines (58 loc) · 1.68 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
#
# Copyright (C) 2018, 2020, 2024 Branko Majic
#
# This file is part of Gimmecert.
#
# Gimmecert is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# Gimmecert is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Gimmecert. If not, see <http://www.gnu.org/licenses/>.
#
[tox]
envlist = {py38,py39,py310,py311,py312},lint,doc
[testenv]
allowlist_externals =
make
basepython =
doc: python3
lint: python3
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
deps =
.[test]
setenv =
# Force column width for functional tests since they depend on
# predictable output format.
COLUMNS=80
commands =
# Must specify cov-report explicitly, otherwise coverage starts
# going through the tests as well.
pytest --cov --cov-report=term-missing:skip-covered --basetemp={envtmpdir} tests/ functional_tests/
[testenv:lint]
deps =
.[testlint]
commands =
flake8
[testenv:doc]
deps =
.[doc]
setenv =
# Override Sphinx build directory so we do not trample over user's
# build in source directory.
BUILDDIR={envtmpdir}/docs_build
commands =
# Easier to run than changing directory with separate comand. -e
# will ensure the BUILDDIR gets picked-up and overrides the Makefile
# content.
make -C docs/ -e html