forked from adafruit/Adafruit_CircuitPython_Requests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (36 loc) · 811 Bytes
/
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
# SPDX-FileCopyrightText: 2022 Kevin Conley
# SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
#
# SPDX-License-Identifier: MIT
[tox]
envlist = py311
[testenv]
description = run tests
deps =
pytest==7.4.3
requests
commands = pytest
[testenv:coverage]
description = run coverage
deps =
pytest==7.4.3
pytest-cov==4.1.0
requests
package = editable
commands =
coverage run --source=. --omit=tests/* --branch {posargs} -m pytest
coverage report
coverage html
[testenv:lint]
description = run linters
deps =
pre-commit==3.6.0
skip_install = true
commands = pre-commit run {posargs}
[testenv:docs]
description = build docs
deps =
-r requirements.txt
-r docs/requirements.txt
skip_install = true
commands = sphinx-build -E -W -b html docs/. _build/html