diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6a7e663f..604ff5051 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -174,7 +174,7 @@ repos: - id: mypy name: mypy stages: [pre-push] - entry: uv run --extra=dev -m mypy + entry: uv run --extra=dev -m mypy --num-workers=4 language: python types_or: [python, toml] pass_filenames: false @@ -185,7 +185,8 @@ repos: - id: mypy-docs name: mypy-docs stages: [pre-push] - entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy" + entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy + --num-workers=4" language: python types_or: [markdown, rst] diff --git a/pyproject.toml b/pyproject.toml index 47f387dc4..abc568b97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,7 @@ optional-dependencies.dev = [ "freezegun==1.5.5", "furo==2025.12.19", "interrogate==1.7.0", - "mypy[faster-cache]==1.20.2", + "mypy[faster-cache]==2.0.0", "mypy-strict-kwargs==2026.1.12", "prek==0.3.11", "pydocstringformatter==0.7.5",