1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Bump pysuezV2 to 0.2.2 (#129205)

Co-authored-by: Joostlek <joostlek@outlook.com>
This commit is contained in:
jb101010-2
2024-10-26 11:44:02 +02:00
committed by GitHub
parent 275bbc81f0
commit 65ee4e1916
4 changed files with 4 additions and 24 deletions

View File

@@ -28,11 +28,6 @@ PACKAGE_REGEX = re.compile(
PIP_REGEX = re.compile(r"^(--.+\s)?([-_\.\w\d]+.*(?:==|>=|<=|~=|!=|<|>|===)?.*$)")
PIP_VERSION_RANGE_SEPARATOR = re.compile(r"^(==|>=|<=|~=|!=|<|>|===)?(.*)$")
IGNORE_STANDARD_LIBRARY_VIOLATIONS = {
# Integrations which have standard library requirements.
"suez_water",
}
def validate(integrations: dict[str, Integration], config: Config) -> None:
"""Handle requirements for integrations."""
@@ -143,10 +138,7 @@ def validate_requirements(integration: Integration) -> None:
if req in sys.stdlib_module_names:
standard_library_violations.add(req)
if (
standard_library_violations
and integration.domain not in IGNORE_STANDARD_LIBRARY_VIOLATIONS
):
if standard_library_violations:
integration.add_error(
"requirements",
(
@@ -154,18 +146,6 @@ def validate_requirements(integration: Integration) -> None:
"are not compatible with the Python standard library"
),
)
elif (
not standard_library_violations
and integration.domain in IGNORE_STANDARD_LIBRARY_VIOLATIONS
):
integration.add_error(
"requirements",
(
f"Integration {integration.domain} no longer has requirements which are"
" incompatible with the Python standard library, remove it from "
"IGNORE_STANDARD_LIBRARY_VIOLATIONS"
),
)
@cache