From 3414feae037e954a4630309114f196a84c1198a8 Mon Sep 17 00:00:00 2001 From: bojanserafimov Date: Wed, 17 Aug 2022 08:17:09 -0400 Subject: [PATCH] Make local mypy behave like CI mypy (#2291) --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index d1a2f9a3598b..7f8c45c8c326 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,6 +18,10 @@ exclude = ^vendor/ # some tests don't typecheck when this flag is set check_untyped_defs = false +# Help mypy find imports when running against list of individual files. +# Without this line it would behave differently when executed on the entire project. +mypy_path = $MYPY_CONFIG_FILE_DIR:$MYPY_CONFIG_FILE_DIR/test_runner + disallow_incomplete_defs = false disallow_untyped_calls = false disallow_untyped_decorators = false