From e18b6ba5069572bd7ea5cf73dafaf3a05d67cbd2 Mon Sep 17 00:00:00 2001 From: Martin Vrachev Date: Wed, 13 Oct 2021 20:54:19 +0300 Subject: [PATCH] Configure mypy to show error codes By configuring mypy to show error codes when we get a warning by mypy we will receive an error code as well. Those error codes are useful when you want to disable specific mypy warning for a line with: Signed-off-by: Martin Vrachev --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 1d4a31c2..d86316a1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -61,6 +61,7 @@ warn_unreachable = True strict_equality = True disallow_untyped_defs = True disallow_untyped_calls = True +show_error_codes = True files = tuf/api/, tuf/ngclient,