From 1c8ad3a94bce2d0b5e62b5e5a4395bb6fb25642d Mon Sep 17 00:00:00 2001 From: Alan Du Date: Wed, 23 Dec 2020 02:05:55 -0500 Subject: [PATCH] Tighten up mypy config (#5237) --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index 4475fb1126..7b685fb8dc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -99,6 +99,10 @@ max-line-length = 120 files = pytorch_lightning, pl_examples, benchmarks, tests disallow_untyped_defs = True ignore_missing_imports = True +show_error_codes = True +warn_redundant_casts = True +warn_unused_configs = True +warn_unused_ignores = True # todo: add proper typing to this module... [mypy-pytorch_lightning.callbacks.*]