mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Derive mypy python_version from REQUIRED_PYTHON_VER (#62616)
This commit is contained in:
@@ -7,6 +7,8 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Final
|
from typing import Final
|
||||||
|
|
||||||
|
from homeassistant.const import REQUIRED_PYTHON_VER
|
||||||
|
|
||||||
from .model import Config, Integration
|
from .model import Config, Integration
|
||||||
|
|
||||||
# Modules which have type hints which known to be broken.
|
# Modules which have type hints which known to be broken.
|
||||||
@@ -143,7 +145,7 @@ HEADER: Final = """
|
|||||||
""".lstrip()
|
""".lstrip()
|
||||||
|
|
||||||
GENERAL_SETTINGS: Final[dict[str, str]] = {
|
GENERAL_SETTINGS: Final[dict[str, str]] = {
|
||||||
"python_version": "3.8",
|
"python_version": ".".join(str(x) for x in REQUIRED_PYTHON_VER[:2]),
|
||||||
"show_error_codes": "true",
|
"show_error_codes": "true",
|
||||||
"follow_imports": "silent",
|
"follow_imports": "silent",
|
||||||
# Enable some checks globally.
|
# Enable some checks globally.
|
||||||
|
Reference in New Issue
Block a user