forked from vacanza/holidays
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
43 lines (39 loc) · 804 Bytes
/
Copy pathtox.ini
File metadata and controls
43 lines (39 loc) · 804 Bytes
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
[pytest]
addopts =
--cov=.
--cov-config=pyproject.toml
--cov-report term
--cov-report xml
--no-cov-on-fail
[testenv]
commands =
pytest
deps =
-r{toxinidir}/requirements_dev.txt
[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
allowlist_externals =
cmd
sphinx-build
basepython = python3.9
commands =
sphinx-build -W -j auto docs/source docs/_build
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/docs/requirements.txt
[testenv:pre-commit]
basepython = python
commands =
pre-commit autoupdate
pre-commit run -a
deps =
pre-commit
[tox]
envlist =
py{37,38,39,310,py3}
pre-commit
docs
minversion = 3.24.5
skip_missing_interpreters = true