From ac60536818dfda5dc0aae028ebf8e742e662b1c4 Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Wed, 24 Mar 2021 20:50:50 +0900 Subject: [PATCH] Follow E231 [flake8] (#6110) * Remove E231 from ignore list * Follow E231 * Update pytorch_lightning/trainer/data_loading.py --- pytorch_lightning/trainer/data_loading.py | 2 +- setup.cfg | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pytorch_lightning/trainer/data_loading.py b/pytorch_lightning/trainer/data_loading.py index 1a9c69d107..59ec40c3df 100644 --- a/pytorch_lightning/trainer/data_loading.py +++ b/pytorch_lightning/trainer/data_loading.py @@ -41,7 +41,7 @@ class TrainerDataLoadingMixin(ABC): tpu_local_core_rank: int train_dataloader: DataLoader num_training_batches: Union[int, float] - val_check_batch:... + val_check_batch: float val_dataloaders: List[DataLoader] num_val_batches: List[Union[int, float]] test_dataloaders: List[DataLoader] diff --git a/setup.cfg b/setup.cfg index 3775eb0070..6365482e32 100644 --- a/setup.cfg +++ b/setup.cfg @@ -64,10 +64,8 @@ verbose = 2 # https://pep8.readthedocs.io/en/latest/intro.html#error-codes format = pylint ignore = - E731 # do not assign a lambda expression, use a def - W503 # line break before binary operator - # because of YAPF - till https://github.com/google/yapf/issues/897 is resolved - E231 # missing whitespace after ',', ';', or ':'; for black + E731 # Ignore "Do not assign a lambda expression, use a def" + W503 # Ignore "Line break occurred before a binary operator" # setup.cfg or tox.ini