mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Enable parallel type checking for mypy (#170381)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
# []
|
||||
# ),
|
||||
|
||||
Reference in New Issue
Block a user