Skip to content

chore(skore): Turn pytest warnings into errors#2082

Draft
thomass-dev wants to merge 1 commit intomainfrom
skore-raise-warning
Draft

chore(skore): Turn pytest warnings into errors#2082
thomass-dev wants to merge 1 commit intomainfrom
skore-raise-warning

Conversation

@thomass-dev
Copy link
Collaborator

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2025

Documentation preview @ 6cc760a

@thomass-dev thomass-dev requested a review from glemaitre October 24, 2025 14:03
thomass-dev pushed a commit that referenced this pull request Oct 29, 2025
Start applying the [settings
suggested](https://learn.scientific-python.org/development/guides/pytest/#configuring-pytest)
by
[Repo-Review](https://learn.scientific-python.org/development/guides/repo-review/?repo=probabl-ai%2Fskore&ref=HEAD&refType=branch):
* **PP308**: `-ra` will print a summary “r”eport of “a”ll results, which
gives you a quick way to review what tests failed and were skipped, and
why.
* **PP307**: `--strict-markers` will make sure you don’t try to use an
unspecified fixture.
* **PP306**: And `--strict-config` will error if you make a mistake in
your config.
* **PP305**: `xfail_strict` will change the default for `xfail` to fail
the tests if it doesn’t fail - you can still override locally in a
specific xfail for a flaky failure.
* **PP304**: `log_cli_level` will report INFO and above log messages on
a failure.

This PR comes as a complement of #2082, which applies this suggestion:
* **PP309**: `filter_warnings` will cause all warnings to be errors (you
can add allowed warnings here too).
glemaitre pushed a commit to auguste-probabl/skore that referenced this pull request Jan 16, 2026
Start applying the [settings
suggested](https://learn.scientific-python.org/development/guides/pytest/#configuring-pytest)
by
[Repo-Review](https://learn.scientific-python.org/development/guides/repo-review/?repo=probabl-ai%2Fskore&ref=HEAD&refType=branch):
* **PP308**: `-ra` will print a summary “r”eport of “a”ll results, which
gives you a quick way to review what tests failed and were skipped, and
why.
* **PP307**: `--strict-markers` will make sure you don’t try to use an
unspecified fixture.
* **PP306**: And `--strict-config` will error if you make a mistake in
your config.
* **PP305**: `xfail_strict` will change the default for `xfail` to fail
the tests if it doesn’t fail - you can still override locally in a
specific xfail for a flaky failure.
* **PP304**: `log_cli_level` will report INFO and above log messages on
a failure.

This PR comes as a complement of probabl-ai#2082, which applies this suggestion:
* **PP309**: `filter_warnings` will cause all warnings to be errors (you
can add allowed warnings here too).
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.

1 participant