-
Notifications
You must be signed in to change notification settings - Fork 22
/
tox.ini
50 lines (46 loc) · 1.16 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
[tox]
envlist =
check-{style,build}
test-xdist{,-cov,-devdeps}
build-{docs,dist}
[testenv:check-style]
description = Run all style and file checks with pre-commit
skip_install = true
deps =
pre-commit
commands =
pre-commit install-hooks
pre-commit run {posargs:--color always --all-files --show-diff-on-failure}
[testenv]
description =
run tests
cov: with coverage
xdist: using parallel processing
set_env =
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
extras =
test
deps =
xdist: pytest-xdist
cov: pytest-cov
devdeps: numpy>=0.0.dev0
devdeps: astropy>=0.0.dev0
devdeps: pyerfa>=0.0.dev0
commands =
pip freeze
pytest \
xdist: -n auto \
cov: --cov --cov-report=term-missing --cov-report=xml \
{posargs}
[testenv:build-docs]
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
sphinx-build -W docs docs/_build
[testenv:build-dist]
description = build wheel and sdist
skip_install = true
deps =
build
commands =
python -m build