requirements: Upgrade to mypy 0.720.

We also add the option of the newly added `--warn_unreachable`
flag.
This commit is contained in:
Wyatt Hoodes
2019-07-23 09:08:41 -10:00
committed by Tim Abbott
parent 1c8106fc67
commit 3060bb2208
4 changed files with 9 additions and 3 deletions

View File

@@ -36,6 +36,8 @@ 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.")
args = parser.parse_args()
assert_provisioning_status_ok(args.force)
@@ -73,6 +75,8 @@ if not python_files and not pyi_files:
extra_args = []
if args.quick:
extra_args.append("--quick")
elif args.warn_unreachable:
extra_args.append("--warn-unreachable")
mypy_args = extra_args + python_files + pyi_files
if args.no_daemon: