-
Notifications
You must be signed in to change notification settings - Fork 63
/
tox.ini
67 lines (62 loc) · 1.44 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
61
62
63
64
65
66
67
[tox]
envlist =
py{310,311,312}-test
py{310,311,312}-{poppydev,pysiafdev,astropydev,latest,stable}-test
py310-legacy-test
py{310,311,312}-{poppydev,pysiafdev}-cov
isolated_build = true
[testenv]
setenv =
astropydev: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple
passenv = *
deps =
pytest
pytest-astropy
poppydev,legacy,astropydev,latest: git+https://github.com/spacetelescope/poppy.git#egg=poppy
pysiafdev,astropydev: git+https://github.com/spacetelescope/pysiaf.git#egg=pysiaf
legacy: numpy==1.21.6
legacy: pysiaf==0.11.0
legacy: astropy==5.1.0
legacy: astroquery==0.4.6
astropydev: astropy>=0.0.dev0
poppydev: synphot
latest: -rrequirements.txt
stable: poppy
stable: pysiaf
cov: pytest-cov
cov: coverage
conda deps =
scipy
matplotlib
cython
photutils
astroquery
commands=
test: pytest {posargs}
cov: pytest {posargs} --cov-config=pyproject.toml --cov-report=xml --cov=webbpsf webbpsf/tests/
[testenv:docbuild]
passenv= *
deps=
sphinx
stsci_rtd_theme
sphinx-automodapi
sphinx-issues
sphinx-astropy
nbsphinx
astroquery
conda_deps=
scipy
matplotlib
pandoc
commands=
sphinx-build docs docs/_build
[testenv:codestyle]
skip_install = true
description = check package code style
deps =
pycodestyle
commands =
pycodestyle webbpsf
[testenv:flake8]
exclude= .git,__pycache__, test*
max-line-length = 120