mypy: Run --warn-unreachable by default.

This commit is contained in:
Wyatt Hoodes 2019-07-31 13:05:16 -10:00 committed by Tim Abbott
parent f80402c64d
commit e6ae160a0c
1 changed files with 4 additions and 2 deletions

View File

@ -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)