Follow E231 [flake8] (#6110)

* Remove E231 from ignore list

* Follow E231

* Update pytorch_lightning/trainer/data_loading.py
This commit is contained in:
Akihiro Nitta 2021-03-24 20:50:50 +09:00 committed by GitHub
parent d02fe342c1
commit ac60536818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -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]

View File

@ -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