catching also PL deprecation warnigs
Borda opened this issue Β· comments
π Feature
if we want to be progressive incompatibility we shall also report on deprecation warnings and eventually treat them as failer...
as an alternative, we can give a user option to set it as strict π€
Pitch
Compatibility for the future
Alternatives
pass pytest argument -W error::DeprecationWarning
in
https://github.com/PyTorchLightning/ecosystem-ci/blob/c544b7bc10fbef6f6b498805dd08837eb1ba96a2/actions/_config.yaml#L54
Additional context
https://docs.pytest.org/en/latest/how-to/capture-warnings.html#controlling-warnings
to just catch the deprecation warnings as an error, we need to somehow catch LightningDeprecationWarning from pytorch-lightning.
but here pytorch-lightning is an external package, so we need to figure out how we can do that.