Bump ruff to 0.15.0 (#162356)

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
Thomas55555
2026-02-06 19:39:32 +01:00
committed by GitHub
parent 88d894212b
commit a53f876e09
6 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.13
rev: v0.15.0
hooks:
- id: ruff-check
args:

View File

@@ -5280,7 +5280,7 @@ async def async_get_broker_settings( # noqa: C901
)
schema = vol.Schema({cv.string: cv.template})
schema(validated_user_input[CONF_WS_HEADERS])
except (*JSON_DECODE_EXCEPTIONS, vol.MultipleInvalid):
except (*JSON_DECODE_EXCEPTIONS, vol.MultipleInvalid): # fmt: off
errors["base"] = "bad_ws_headers"
return False
return True

View File

@@ -233,5 +233,5 @@ async def async_get_installed_packages() -> list[InstalledPackage]:
try:
return cast(list[InstalledPackage], json_loads_array(stdout.decode()))
except (*JSON_DECODE_EXCEPTIONS, ValueError):
except (*JSON_DECODE_EXCEPTIONS, ValueError): # fmt: off
return []

View File

@@ -675,7 +675,7 @@ exclude_lines = [
]
[tool.ruff]
required-version = ">=0.14.13"
required-version = ">=0.15.0"
[tool.ruff.lint]
select = [
@@ -784,6 +784,7 @@ select = [
ignore = [
"ASYNC109", # Async function definition with a `timeout` parameter Use `asyncio.timeout` instead
"ASYNC110", # Use `asyncio.Event` instead of awaiting `asyncio.sleep` in a `while` loop
"ASYNC240", # Use an async function for entering the file system
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
@@ -798,6 +799,7 @@ ignore = [
"PLR0913", # Too many arguments to function call ({c_args} > {max_args})
"PLR0915", # Too many statements ({statements} > {max_statements})
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"PLW0108", # Unnecessary lambda wrapping a function call; can often be replaced by the function itself
"PLW1641", # __eq__ without __hash__
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
"PT011", # pytest.raises({exception}) is too broad, set the `match` parameter or use a more specific exception

View File

@@ -1,5 +1,5 @@
# Automatically generated from .pre-commit-config.yaml by gen_requirements_all.py, do not edit
codespell==2.4.1
ruff==0.14.13
ruff==0.15.0
yamllint==1.37.1

View File

@@ -26,7 +26,7 @@ RUN --mount=from=ghcr.io/astral-sh/uv:0.9.26,source=/uv,target=/bin/uv \
-r /usr/src/homeassistant/requirements.txt \
pipdeptree==2.26.1 \
tqdm==4.67.1 \
ruff==0.14.13
ruff==0.15.0
LABEL "name"="hassfest"
LABEL "maintainer"="Home Assistant <hello@home-assistant.io>"