Skip to content

Treat warnings as errors in tests#280

Merged
PicoCentauri merged 1 commit into
mainfrom
warnings
Jan 6, 2026
Merged

Treat warnings as errors in tests#280
PicoCentauri merged 1 commit into
mainfrom
warnings

Conversation

@PicoCentauri

@PicoCentauri PicoCentauri commented Dec 23, 2025

Copy link
Copy Markdown
Collaborator

Fixes #279

Enable that warnings are treated as errors in the testsuite.

I fixed a couple of warnings in main code that would probably hit us badly in the next release of sklearn...

Also, I adjusted some tests for catching warnings using the pytest.warns context manager but there are a lot more. Maybe if @cajchristian or someone else from @rosecers' team can help with fixing them. Almost all of them are very easy to fix

Contributor (creator of PR) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

For Reviewer

  • CHANGELOG updated if important change?

📚 Documentation preview 📚: https://scikit-matter--280.org.readthedocs.build/en/280/

@PicoCentauri PicoCentauri marked this pull request as ready for review January 6, 2026 15:44
@PicoCentauri PicoCentauri merged commit 61a9953 into main Jan 6, 2026
10 checks passed
@PicoCentauri PicoCentauri deleted the warnings branch January 6, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warnings are not treated as errors in the tests

1 participant