From e6ae160a0cc7a6cc6fd8ce19621f5fbc94d9357b Mon Sep 17 00:00:00 2001 From: Wyatt Hoodes Date: Wed, 31 Jul 2019 13:05:16 -1000 Subject: [PATCH] mypy: Run --warn-unreachable by default. --- tools/run-mypy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/run-mypy b/tools/run-mypy index aff7ae93d5..0a4f6f3708 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -36,8 +36,10 @@ parser.add_argument('-a', '--all', action='store_true', help="check all files, bypassing the default exclude list") parser.add_argument('--force', action="store_true", help="run tests despite possible provisioning problems") -parser.add_argument('--warn-unreachable', action='store_true', - help="warn of unreachable or redundant code.") +parser.add_argument('--warn-unreachable', + action='store_false', + default=True, + help="warn of unreachable or redundant code; defaults to true") args = parser.parse_args() assert_provisioning_status_ok(args.force)