Skip to content

Commit

Permalink
ENH: Filter seaborn and matplotlib orientation warning
Browse files Browse the repository at this point in the history
Filter `seaborn` and `matplotlib` orientation warning: `matplotlib` has
deprecating the `vert` boolean orientation starting version 3.10.0. We
are requiring `matplotlib` >= 3.5 and `seabornº >= 0.13.

Fixes:
```
  nireports/tests/test_interfaces.py: 4 warnings
  nireports/tests/test_dwi.py: 1 warning
  nireports/tests/test_reportlets.py: 12 warnings
    /home/runner/work/nireports/nireports/.tox/py310-latest/lib/python3.10/site-packages/seaborn/categorical.py:700:
PendingDeprecationWarning: vert: bool will be deprecated in a future version.
 Use orientation: {'vertical', 'horizontal'} instead.
      artists = ax.bxp(**boxplot_kws)
```

raised for example in:
https://github.com/nipreps/nireports/actions/runs/13276183449/job/37066107605#step:14:336
  • Loading branch information
jhlegarreta committed Feb 18, 2025
1 parent 7320552 commit 7c18e89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ addopts = [
]
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
env = "PYTHONHASHSEED=0"
filterwarnings = ["ignore::DeprecationWarning"]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore:.*bool will be deprecated in a future version.*:PendingDeprecationWarning",
]
junit_family = "xunit2"


Expand Down

0 comments on commit 7c18e89

Please sign in to comment.