Run mypy on the lowest supported Python version instead of system Python (#27048)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor 2025-10-23 13:07:44 +01:00 committed by GitHub
parent 61089465a6
commit 3a4255c7c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,8 +48,8 @@ repos:
entry: python tools/generate_nightly_torch_test.py entry: python tools/generate_nightly_torch_test.py
files: ^requirements/test\.(in|txt)$ files: ^requirements/test\.(in|txt)$
- id: mypy-local - id: mypy-local
name: Run mypy for local Python installation name: Run mypy locally for lowest supported Python version
entry: python tools/pre_commit/mypy.py 0 "local" entry: python tools/pre_commit/mypy.py 0 "3.10"
stages: [pre-commit] # Don't run in CI stages: [pre-commit] # Don't run in CI
<<: &mypy_common <<: &mypy_common
language: python language: python