Skip to content

Commit

Permalink
Handle warnings seen in log
Browse files Browse the repository at this point in the history
even though the warnings somehow did not fail pytest
  • Loading branch information
pllim committed Nov 22, 2023
1 parent ea65b1b commit f1104ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ filterwarnings =
ignore:Input WCS indicates that the spectral axis is not last:UserWarning
ignore:No velocity defined on frame:astropy.coordinates.spectral_coordinate.NoVelocityWarning
ignore:No observer defined on WCS:astropy.utils.exceptions.AstropyUserWarning
# matplotlib + python-dateutil<=2.8.2 + Python 3.12
ignore:datetime\.datetime\.utcfromtimestamp:DeprecationWarning

[coverage:run]
omit =
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ deps =

devdeps: numpy>=0.0.dev0
devdeps: scipy>=0.0.dev0
devdeps: matplotlib>=0.0.dev0
devdeps: pyerfa>=0.0.dev0
devdeps: astropy>=0.0.dev0
devdeps: git+https://github.com/spacetelescope/gwcs.git
Expand All @@ -66,8 +65,10 @@ extras =
!oldestdeps: jwst

commands =
# Install matplotlib after package build to make sure things are built with numpy 2.x ABI
devdeps: python -m pip install --pre --upgrade --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple matplotlib>=0.0.dev0
# Force numpy-dev after matplotlib downgrades it (https://github.com/matplotlib/matplotlib/issues/26847)
devdeps: python -m pip install --pre --upgrade --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
devdeps: python -m pip install --pre --upgrade --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy>=0.0.dev0
pip freeze
!cov: pytest --pyargs specutils '{toxinidir}/docs' {posargs}
cov: pytest --pyargs specutils '{toxinidir}/docs' --cov specutils --cov-config='{toxinidir}/setup.cfg' {posargs}
Expand Down

0 comments on commit f1104ca

Please sign in to comment.