forked from sunpy/sunkit-instruments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (57 loc) · 1.86 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
51
52
53
54
55
56
57
58
59
60
[tox]
envlist =
py{38,39,310,311}{,-devdeps,-online,-oldestdeps}
build_docs
codestyle
requires =
setuptools >=56, !=61.0.0
pip >= 19.3.1
tox-pypi-filter >= 0.12
isolated_build = true
[testenv]
pypi_filter = https://raw.githubusercontent.com/sunpy/sunpy/main/.test_package_pins.txt
changedir = .tmp/{envname}
description =
run tests
devdeps: with the latest developer version of key dependencies
online: that require remote data
oldestdeps: with the oldest supported version of key dependencies
setenv =
COLUMNS = 180
PYTEST_COMMAND = pytest -vvv -s -raR --durations=25 --pyargs sunkit_instruments --cov-report=xml --cov=sunkit_instruments --cov-config={toxinidir}/setup.cfg {toxinidir}/docs
SUNPY_SAMPLEDIR = {env:SUNPY_SAMPLEDIR:{toxinidir}/.tox/{envname}/sample_data/}
PARFIVE_HIDE_PROGRESS = True
passenv =
HOME
HTTP_PROXY
HTTPS_PROXY
NO_PROXY
CIRCLECI
deps =
devdeps: git+https://github.com/sunpy/sunpy
oldestdeps: sunpy<4.1
online: pytest-rerunfailures
online: pytest-timeout
pytest-xdist
extras =
dev
commands =
!online: {env:PYTEST_COMMAND} {posargs}
online: {env:PYTEST_COMMAND} --reruns 3 --reruns-delay 30 --timeout=180 --remote-data=any {posargs}
[testenv:build_docs]
usedevelop = true
changedir = docs
description = Invoke sphinx-build to build the HTML docs
extras = dev
commands =
sphinx-build -j auto --color -W --keep-going -b html -d _build/.doctrees . _build/html {posargs}
python -c 'import pathlib; print("Documentation available under file://\{0\}".format(pathlib.Path(r"{toxinidir}") / "docs" / "_build" / "index.html"))'
[testenv:codestyle]
pypi_filter =
skip_install = true
description = Run all style and file checks with pre-commit
deps =
pre-commit
commands =
pre-commit install-hooks
pre-commit run --color auto --all-files --show-diff-on-failure