Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruff to 0.6.8 #126842

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.6
rev: v0.6.8
hooks:
- id: ruff
args:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/esphome/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def async_lock(self, **kwargs: Any) -> None:
@convert_api_error_ha_error
async def async_unlock(self, **kwargs: Any) -> None:
"""Unlock the lock."""
code = kwargs.get(ATTR_CODE, None)
code = kwargs.get(ATTR_CODE)
self._client.lock_command(self._key, LockCommand.UNLOCK, code)

@convert_api_error_ha_error
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/lifx/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ async def start_effect(

elif service == SERVICE_EFFECT_MORPH:
theme_name = kwargs.get(ATTR_THEME, "exciting")
palette = kwargs.get(ATTR_PALETTE, None)
palette = kwargs.get(ATTR_PALETTE)

if palette is not None:
theme = Theme()
Expand Down Expand Up @@ -362,7 +362,7 @@ async def start_effect(
direction=kwargs.get(
ATTR_DIRECTION, EFFECT_MOVE_DEFAULT_DIRECTION
),
theme_name=kwargs.get(ATTR_THEME, None),
theme_name=kwargs.get(ATTR_THEME),
power_on=kwargs.get(ATTR_POWER_ON, False),
)
for coordinator in coordinators
Expand Down Expand Up @@ -410,7 +410,7 @@ async def start_effect(
await self.effects_conductor.start(effect, bulbs)

elif service == SERVICE_EFFECT_SKY:
palette = kwargs.get(ATTR_PALETTE, None)
palette = kwargs.get(ATTR_PALETTE)
if palette is not None:
theme = Theme()
for hsbk in palette:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/motion_blinds/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
async def async_set_absolute_position(self, **kwargs):
"""Move the cover to a specific absolute position."""
position = kwargs[ATTR_ABSOLUTE_POSITION]
target_width = kwargs.get(ATTR_WIDTH, None)
target_width = kwargs.get(ATTR_WIDTH)

Check warning on line 464 in homeassistant/components/motion_blinds/cover.py

View check run for this annotation

Codecov / codecov/patch

homeassistant/components/motion_blinds/cover.py#L464

Added line #L464 was not covered by tests

async with self._api_lock:
await self.hass.async_add_executor_job(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ exclude_lines = [
]

[tool.ruff]
required-version = ">=0.5.3"
required-version = ">=0.6.8"

[tool.ruff.lint]
select = [
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_pre_commit.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Automatically generated from .pre-commit-config.yaml by gen_requirements_all.py, do not edit

codespell==2.3.0
ruff==0.6.6
ruff==0.6.8
yamllint==1.35.1
2 changes: 1 addition & 1 deletion script/hassfest/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN --mount=from=ghcr.io/astral-sh/uv:0.4.15,source=/uv,target=/bin/uv \
--no-cache \
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
-r /usr/src/homeassistant/requirements.txt \
stdlib-list==0.10.0 pipdeptree==2.23.4 tqdm==4.66.5 ruff==0.6.6 \
stdlib-list==0.10.0 pipdeptree==2.23.4 tqdm==4.66.5 ruff==0.6.8 \
PyTurboJPEG==1.7.5 ha-ffmpeg==3.2.0 hassil==1.7.4 home-assistant-intents==2024.9.23 mutagen==1.47.0 pymicro-vad==1.0.1 pyspeex-noise==1.0.2

LABEL "name"="hassfest"
Expand Down