-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
61 lines (51 loc) · 1.14 KB
/
tox.ini
File metadata and controls
61 lines (51 loc) · 1.14 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
[base]
name = netsalt
testdeps =
mock
pytest
pytest-cov
[tox]
envlist =
lint
py{310,311,312}
coverage
docs
minversion = 3.1.0
# ignore basepython for envs that already specify a version
ignore_basepython_conflict = true
[testenv]
deps = {[base]testdeps}
commands = pytest
[testenv:coverage]
# Separate env so the regular test matrix isn't slowed by coverage
# instrumentation. Fails if coverage drops below 70 %. Uses an editable
# install so the ``--cov=netsalt`` path matches the source tree rather
# than the site-packages copy tox would otherwise install.
basepython = python3
usedevelop = True
deps = {[base]testdeps}
commands =
pytest --cov=netsalt --cov-report=term-missing --cov-fail-under=70
[testenv:lint]
basepython = python3
deps = ruff
commands =
ruff check netsalt tests
ruff format --check netsalt tests
[testenv:format]
deps = ruff
commands =
ruff check --fix netsalt tests
ruff format netsalt tests
[testenv:docs]
changedir = doc
deps =
sphinx
alabaster
commands = make html
allowlist_externals = make
[gh-actions]
python =
3.10: py310, lint, coverage
3.11: py311
3.12: py312