Enable parallel type checking for mypy (#170381)

This commit is contained in:
Marc Mueller
2026-05-12 10:34:47 +02:00
committed by GitHub
parent cfdb00bf36
commit 99b1e7c229
3 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -853,7 +853,7 @@ jobs:
run: |
. venv/bin/activate
python --version
mypy homeassistant pylint
mypy --num-workers=4 homeassistant pylint
- name: Run mypy (partially)
if: needs.info.outputs.test_full_suite == 'false'
shell: bash
@@ -862,7 +862,7 @@ jobs:
run: |
. venv/bin/activate
python --version
mypy $(printf "homeassistant/components/%s " ${INTEGRATIONS_GLOB})
mypy --num-workers=4 $(printf "homeassistant/components/%s " ${INTEGRATIONS_GLOB})
prepare-pytest-full:
name: Split tests for full run
Generated
+2
View File
@@ -8,6 +8,8 @@ platform = linux
plugins = pydantic.mypy
show_error_codes = true
follow_imports = normal
native_parser = true
num_workers = 2
local_partial_types = true
strict_equality = true
strict_bytes = true
+2
View File
@@ -38,6 +38,8 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
),
"show_error_codes": "true",
"follow_imports": "normal",
"native_parser": "true",
"num_workers": "2", # Use a conservative value here
# "enable_incomplete_feature": ", ".join(
# []
# ),