From c14964a861aedcabb0244492cef755eb5d8f1065 Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Thu, 20 Jan 2022 02:07:20 +0900 Subject: [PATCH] Fail tests on warning of scheduler being called before optimizer --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 9f908742c0110..10a3ee3f7509a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ filterwarnings = # error out on our deprecation warnings - ensures the code and tests are kept up-to-date error::pytorch_lightning.utilities.rank_zero.LightningDeprecationWarning error::FutureWarning + error:Detected call of `lr_scheduler.step\(\)` before `optimizer.step\(\)`:UserWarning # warnings from deprecated modules on import # TODO: remove in 1.7 ignore::pytorch_lightning.utilities.rank_zero.LightningDeprecationWarning:pytorch_lightning.core.decorators