-
Notifications
You must be signed in to change notification settings - Fork 154
How to turn backend warnings into errors? #482
Copy link
Copy link
Open
Labels
Description
In scikit-hep/pyhf#1881 I noticed and fixed a SetuptoolsDeprecationWarning that pyhf had in its setup. As pyhf runs build in its CI to ensure things are working I would like to have these warnings get turned into errors so that the dev team is alerted to them in advance (I just noticed this SetuptoolsDeprecationWarning by looking at the logs by chance).
My naive attempt at
$ python -Werror -m build .doesn't work, but I guess I'm unclear on how one should pass in warning filters to build and the commands that it will run as
$ python -m build --config-setting=-Werror .also doesn't work (though that makes sense as --config-setting is going to the backend (setuptools) and not to Python).
Reactions are currently unavailable