mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
requirements: Upgrade to mypy 0.720.
We also add the option of the newly added `--warn_unreachable` flag.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user