-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
50 lines (46 loc) · 1.1 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]
minversion = 4.0.0
envlist =
py{310,311,312}{,-conda}
build_docs
codestyle
requires =
tox-pypi-filter
[testenv]
pypi_filter_requirements = https://raw.githubusercontent.com/sunpy/sunpy/main/.test_package_pins.txt
changedir = .tmp/{envname}
description =
run the test suite
deps =
pytest-cov
extras =
test
commands =
pytest --pyargs pyflct {toxinidir}/docs --cov pyflct --cov-config={toxinidir}/setup.cfg {posargs}
[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
sphinx-build -W -b html . _build/html {posargs}
[testenv:codestyle]
skip_install = true
description = Run all style and file checks with pre-commit
deps =
pre-commit
commands =
pre-commit install
pre-commit run --all-files
[testenv:py{310,311,312}-conda]
pypi_filter =
description = Use anaconda to test the package.
extras =
conda_deps =
cython
numpy
pytest-cov
pytest
fftw
conda_channels = conda-forge
commands =
pytest --pyargs pyflct {toxinidir}/docs --cov pyflct --cov-config={toxinidir}/setup.cfg {posargs}