Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify warning filters in test suite #7349

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

lagru
Copy link
Member

@lagru lagru commented Mar 17, 2024

Description

The idea is to remove technical debt, simplify our test suite and rely on pytest as much as possible instead of cooking our own custom solutions. This way we have less to maintain and contributors (and maintainers) can use standard tooling which should be a much smaller barrier.

This PR mainly removes / replaces the whole machinery around SKIMAGE_TEST_STRICT_WARNINGS_GLOBAL and also outdated warning filters.

Checklist

Release note

We use changelist to
compile each pull request into an item of the release notes. Please refer to
the instructions
and past release notes
for guidance and examples.

...

lagru added 4 commits March 17, 2024 16:36
I want to make our test suite configuration less complex and opaque.
Having a hidden `setup_test` with warning filters is less obvious than
using pytests official support for it.

Also remove filters that are not longer needed.
Neither NumPy's linspace nor called functions in our color module can
really deal with the max and min value supported by float64. As we might
deprecate this plugin system soon, just ignore it.
@lagru lagru added the 🔧 type: Maintenance Refactoring and maintenance of internals label Mar 17, 2024
According to the CI apparently none of these are needed anymore...
@lagru lagru marked this pull request as ready for review March 18, 2024 14:14
Copy link
Member

@mkcor mkcor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels good! 😎

@jarrodmillman jarrodmillman merged commit a36eaf8 into scikit-image:main Apr 3, 2024
22 checks passed
@stefanv stefanv added this to the 0.23 milestone Apr 3, 2024
@lagru lagru deleted the pyproject-filterwarnings branch April 3, 2024 12:09
@lagru lagru mentioned this pull request Apr 9, 2024
jarrodmillman added a commit to jarrodmillman/scikit-image that referenced this pull request Feb 27, 2025
stefanv pushed a commit that referenced this pull request Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 type: Maintenance Refactoring and maintenance of internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants