scripts: add mypy vpython wrapper
BUG=b:269132261
TEST=./mypy --version # successfully finds dependencies and runs.
Change-Id: Icbc223aa872a14791bf058af4b18e6c3dd106a85
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4496286
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Trent Apted <tapted@chromium.org>
Auto-Submit: Trent Apted <tapted@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
diff --git a/scripts/mypy b/scripts/mypy
new file mode 100755
index 0000000..c81379f
--- /dev/null
+++ b/scripts/mypy
@@ -0,0 +1,37 @@
+#!/usr/bin/env vpython3
+# Copyright 2023 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# [VPYTHON:BEGIN]
+# python_version: "3.8"
+#
+# wheel: <
+# name: "infra/python/wheels/mypy-py3"
+# version: "version:1.2.0"
+# >
+# wheel: <
+# name: "infra/python/wheels/typing-extensions-py3"
+# version: "version:3.10.0.2"
+# >
+# wheel: <
+# name: "infra/python/wheels/mypy-extensions-py3"
+# version: "version:1.0.0"
+# >
+# wheel: <
+# name: "infra/python/wheels/tomli-py3"
+# version: "version:1.1.0"
+# >
+# wheel: <
+# name: "infra/python/wheels/psutil/${vpython_platform}"
+# version: "version:5.7.2"
+# >
+# [VPYTHON:END]
+
+"""Wrapper for stable version of mypy that we control."""
+
+# pylint: disable=import-error,no-name-in-module
+from mypy.__main__ import console_entry
+
+
+console_entry()