Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #523

Closed
wants to merge 2 commits into from
Closed
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.2.0
hooks:
- id: black
args:
Expand All @@ -30,7 +30,7 @@ repos:
- --quiet-level=2
exclude_types: [csv, json]
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -39,7 +39,7 @@ repos:
<<: &python-files
files: ^(custom_components/.+)?[^/]+\.py$
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.7.7
hooks:
- id: bandit
args:
Expand All @@ -48,7 +48,7 @@ repos:
- --configfile=bandit.yaml
<<: *python-files-with-tests
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -73,7 +73,7 @@ repos:
- --top-keys=domain,name
files: manifest\.json$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
rev: v4.0.0-alpha.8
hooks:
- id: prettier
additional_dependencies:
Expand All @@ -83,7 +83,7 @@ repos:
- python
exclude: manifest\.json$
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
rev: v1.34.0
hooks:
- id: yamllint
- repo: local
Expand Down Expand Up @@ -111,7 +111,7 @@ repos:
- id: check-pre-commit-ci-config

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.2
rev: 0.28.0
hooks:
- id: check-github-workflows
- id: check-dependabot
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Deebot Vacuums."""

import asyncio
import logging
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Binary sensor module."""

from collections.abc import Callable
from dataclasses import dataclass
from typing import Generic
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Binary sensor module."""

from collections.abc import Sequence
from dataclasses import dataclass

Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Deebot integration."""

import logging
import random
import string
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Const module."""

from collections.abc import Mapping

from deebot_client.events import (
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Controller module."""

import logging
import random
import string
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Diagnostics support for deebot."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Deebot entity module."""

from collections.abc import Callable, Coroutine
from dataclasses import dataclass
from typing import Any, Generic, TypeVar
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Deebot image entities."""

from collections.abc import MutableMapping, Sequence
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Number module."""

from collections.abc import Callable
from dataclasses import dataclass
from typing import Generic
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Select module."""

from collections.abc import Callable
from dataclasses import dataclass
from typing import Any, Generic
Expand Down
7 changes: 4 additions & 3 deletions custom_components/deebot/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sensor module."""

from collections.abc import Callable, MutableMapping, Sequence
from dataclasses import dataclass
from math import floor
Expand Down Expand Up @@ -49,9 +50,9 @@ class DeebotSensorEntityDescription(
):
"""Deebot sensor entity description."""

extra_state_attributes_fn: Callable[
[EventT], MutableMapping[str, Any]
] | None = None
extra_state_attributes_fn: Callable[[EventT], MutableMapping[str, Any]] | None = (
None
)
value_fn: Callable[[EventT], StateType]


Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Switch module."""

from dataclasses import dataclass
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Util module."""

import dataclasses
from enum import Enum
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/vacuum.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Deebot Vacuums."""

import logging
from collections.abc import Mapping, Sequence
from typing import Any
Expand Down
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Global fixtures for integration_blueprint integration."""

# Fixtures allow you to replace functions with a Mock object. You can perform
# many options via the Mock to reflect a particular behavior from the original
# function that you want to see without going through the function's actual logic.
Expand Down Expand Up @@ -34,8 +35,9 @@ def auto_enable_custom_integrations(enable_custom_integrations):
@pytest.fixture(name="skip_notifications", autouse=True)
def skip_notifications_fixture():
"""Skip notification calls."""
with patch("homeassistant.components.persistent_notification.async_create"), patch(
"homeassistant.components.persistent_notification.async_dismiss"
with (
patch("homeassistant.components.persistent_notification.async_create"),
patch("homeassistant.components.persistent_notification.async_dismiss"),
):
yield

Expand Down