-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
94 lines (69 loc) · 1.34 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
# ******************************************************************************
#
# elective: a Python configuration loader generator
#
# Copyright 2021 Jeremy A Gray <[email protected]>.
#
# SPDX-License-Identifier: MIT
#
# ******************************************************************************
[tox]
envlist =
# Erase old test coverage data.
clean
# Python versions.
py{36,37,38,39,310}
# Generate current test coverage report.
report
# Linting
lint
isolated_build = True
skip_missing_interpreters = True
requires =
pip>=20.0
[testenv]
# Test all Python versions.
deps =
pytest
pytest-cov
commands =
pytest --cov loader --cov-append
[testenv:build]
description = build
basepython = python3.10
deps =
setuptools
wheel
build
commands =
python -m build
[testenv:clean]
# Erase previous test coverage data.
deps = coverage[TOML]
skip_install = true
commands = coverage erase
[testenv:docs]
description = build documentation
basepython = python3.10
deps =
Sphinx
commands =
sphinx-build -b html docs docs/_build/html
[testenv:lint]
# Linting.
deps =
black
flake8
flake8-docstrings
isort
commands =
isort elective
black elective
flake8 elective
[testenv:report]
# Generate current test coverage report.
deps = coverage[TOML]
skip_install = true
commands =
coverage report
coverage html