Skip to content

Commit db8dd2d

Browse files
committed
flake8
1 parent 77a4f40 commit db8dd2d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pytorch_lightning/callbacks/model_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def __init_monitor_mode(self, monitor, mode):
281281
}
282282

283283
if mode not in mode_dict:
284-
raise MisconfigurationException(f"`mode` can be {', '.join(mode_dict.keys())}, got {mode}")
284+
raise MisconfigurationException(f"`mode` can be {', '.join(mode_dict.keys())} but got {mode}")
285285

286286
self.kth_value, self.mode = mode_dict[mode]
287287

tests/checkpointing/test_model_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,5 +975,5 @@ def test_ckpt_version_after_rerun_same_trainer(tmpdir):
975975

976976

977977
def test_model_checkpoint_mode_options():
978-
with pytest.raises(MisconfigurationException, match="`mode` can be auto, .* got unknown_option"):
978+
with pytest.raises(MisconfigurationException, match="`mode` can be .* but got unknown_option"):
979979
ModelCheckpoint(mode="unknown_option")

tests/deprecated_api/test_remove_1-3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import pytest
1717

18-
from pytorch_lightning import LightningModule, Trainer
18+
from pytorch_lightning import LightningModule
1919

2020

2121
def test_v1_3_0_deprecated_arguments(tmpdir):

0 commit comments

Comments
 (0)