mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
mypy: Assign warn_unreachable in mypy.ini.
Instead of doing this rather clumsily in `run_mypy`, we configure the option in `mypy.ini`.
This commit is contained in:
@@ -36,10 +36,6 @@ 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_false',
|
||||
default=True,
|
||||
help="warn of unreachable or redundant code; defaults to true")
|
||||
args = parser.parse_args()
|
||||
|
||||
assert_provisioning_status_ok(args.force)
|
||||
@@ -77,8 +73,6 @@ 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