From a5eb6d987436c69ba556fe2ed303460fb444b608 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Oct 2021 21:31:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pytorch_lightning/trainer/configuration_validator.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pytorch_lightning/trainer/configuration_validator.py b/pytorch_lightning/trainer/configuration_validator.py index 9bc2408f9ba0ef..1f20940f751ac3 100644 --- a/pytorch_lightning/trainer/configuration_validator.py +++ b/pytorch_lightning/trainer/configuration_validator.py @@ -151,9 +151,13 @@ def __verify_eval_loop_configuration(model: "pl.LightningModule", stage: str) -> has_step = is_overridden(step_name, model) if has_loader and not has_step: - MisconfigurationException(f"You defined `{loader_name}` but have not defined `{step_name}` on your Lightning Module.") + MisconfigurationException( + f"You defined `{loader_name}` but have not defined `{step_name}` on your Lightning Module." + ) if has_step and not has_loader: - MisconfigurationException(f"You defined `{step_name}` but have not defined `{loader_name}` on your Lighning Module.") + MisconfigurationException( + f"You defined `{step_name}` but have not defined `{loader_name}` on your Lighning Module." + ) # ---------------------------------------------- # verify model does not have