Skip to content

Commit

Permalink
Fail on all warnings (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Feb 4, 2024
1 parent ceea1b7 commit 5fe7496
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ addopts = "--strict-markers --strict-config -v -r sxfE --color=yes"
xfail_strict = true
python_files = ["test_*.py"]
testpaths = ["xarray_extras/tests"]
filterwarnings = [
"error",
"ignore:datetime.datetime.utcfromtimestamp():DeprecationWarning",
]

[tool.coverage.report]
show_missing = true
Expand Down
6 changes: 6 additions & 0 deletions xarray_extras/tests/test_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

from xarray_extras.stack import proper_unstack

# FIXME https://github.com/crusaderky/xarray_extras/issues/33
pytestmark = pytest.mark.filterwarnings(
"ignore:Updating MultiIndexed coordinate .* would corrupt indices",
"ignore:invalid value encountered in cast:RuntimeWarning",
)


def test_proper_unstack_order():
# Note: using MultiIndex.from_tuples is NOT the same thing as
Expand Down

0 comments on commit 5fe7496

Please sign in to comment.