Repository navigation
CI Turn *ALL* warnings into errors - #29516
jeremiedbb wants to merge 30 commits into
Conversation
|
Basically I am worried about all the warnings that we were completely ignoring before and that now will create additional work. I have to say that my gut feeling is that it is not worth it. I don't seem to remember many reports of people complaining about too many annoying warnings that somehow an approach like this PR would avoid 1. Having said this I may be willing to consider it, maybe give it a go, use it for a few months, see how much pain this represents in practice, and revert if we decide this is too painful. An example warning that I have in mind, polars and it was reverted thanks to @glemaitre input pola-rs/polars#20255 (comment). This did not affect scikit-learn CI because it was a A few suggestions:
Footnotes
|
|
There are arguments to not ebable it in
In addition, looping through all the test files will take a huge amount of contributor and review time that we don't have a lot (and it's not the best use of this time). With that in mind I'm closing this PR for now. |
This PR adds a pytest mark on all tests to turn all warnings into errors, towards #10158, especially #10158 (comment).
There's obviously a list of test modules to skip because there are still many warnings in our tests.
The goal is to open a meta issue to track the clean-up of warnings in the remaining test modules.
This PR adds a pytest mark on each test, until it's done for all remaining test modules, at which point it should be done as a single pytest config.
cc/ @lesteve :)