From 7b1eb02aa3f41d86fef4d93e7ed39678d7587fe5 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Wed, 10 Nov 2021 10:49:32 +0100 Subject: [PATCH] Show error codes when running mypy E.g. this error: ``` lib/galaxy/tool_util/cwl/schema.py:38: error: "LoadingContext" has no attribute "relax_path_checks" ``` becomes ``` lib/galaxy/tool_util/cwl/schema.py:38: error: "LoadingContext" has no attribute "relax_path_checks" [attr-defined] ``` making it easier to Google for solutions or to add a `# type: ignore[error-code]` comment. --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 33aa6561556..57ae1e295f7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,7 @@ import-order-style = smarkets application-import-names = galaxy,galaxy_test,tool_shed [mypy] +show_error_codes = True ignore_missing_imports = True check_untyped_defs = True exclude = lib/galaxy/tools/bundled|test/functional