forked from vacanza/holidays
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (28 loc) · 747 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
[tox]
minversion = 3.24.5
skip_missing_interpreters = true
envlist = py{37,38,39,310,py3}, pre-commit, docs
[pytest]
addopts = --cov=./ --cov-report term --cov-report xml --cov-config=./pyproject.toml
[testenv:pre-commit]
basepython = python
deps = pre-commit
commands =
pre-commit autoupdate
pre-commit run -a
[testenv]
deps = -r{toxinidir}/requirements_dev.txt
commands = pytest
[testenv:docs]
# Test docs
# We run it in Python 3.9 to match
# https://docs.readthedocs.io/en/stable/config-file/v2.html?#build-image
basepython = python3.9
commands =
sphinx-build -W -j auto docs/source docs/_build
allowlist_externals =
cmd
sphinx-build
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/docs/requirements.txt