Set Ruff RUF001-003 to ignore (#115477)

This commit is contained in:
Sid 2024-04-13 00:51:36 +02:00 committed by GitHub
parent f16ee2ded9
commit d74be6d5fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class HVACMode(StrEnum):
# Device is in Dry/Humidity mode
DRY = "dry"
# Only the fan is on, not fan and another mode like cool
# Only the fan is on, not fan and another mode like cool
FAN_ONLY = "fan_only"

View File

@ -750,6 +750,9 @@ ignore = [
"PT011", # pytest.raises({exception}) is too broad, set the `match` parameter or use a more specific exception
"PT012", # `pytest.raises()` block should contain a single simple statement
"PT018", # Assertion should be broken down into multiple parts
"RUF001", # String contains ambiguous unicode character.
"RUF002", # Docstring contains ambiguous unicode character.
"RUF003", # Comment contains ambiguous unicode character.
"SIM102", # Use a single if statement instead of nested if statements
"SIM108", # Use ternary operator {contents} instead of if-else-block
"SIM115", # Use context handler for opening files

View File

@ -1115,7 +1115,7 @@ async def test_flux_with_mired(
hass: HomeAssistant,
mock_light_entities: list[MockLight],
) -> None:
"""Test the flux switch´s mode mired."""
"""Test the flux switch's mode mired."""
setup_test_component_platform(hass, light.DOMAIN, mock_light_entities)
assert await async_setup_component(
@ -1176,7 +1176,7 @@ async def test_flux_with_rgb(
hass: HomeAssistant,
mock_light_entities: list[MockLight],
) -> None:
"""Test the flux switch´s mode rgb."""
"""Test the flux switch's mode rgb."""
setup_test_component_platform(hass, light.DOMAIN, mock_light_entities)
assert await async_setup_component(