MomentsLD / moments

MIT License
10 stars 3 forks source link

Treat warnings as errors when running tests? #168

Open molpopgen opened 7 months ago

molpopgen commented 7 months ago

The test suite emits several warnings that will be errors soon. I prefer to prevent this by not allowing tests emitting warnings to pass. Doing so lets you get in front of issues arising from changes in your dependencies.

To fix in CI:

# The -We promotes warnings to errors.
python -We -m pytest tests