Skip to content
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "CHANGELOG.md"
default_stages: [commit]
default_stages: [pre-commit]

ci:
autofix_commit_msg: "chore(pre-commit.ci): auto fixes"
autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate"

repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.2.2
rev: v3.31.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: debug-statements
- id: check-builtin-literals
Expand All @@ -29,22 +29,22 @@ repos:
- id: trailing-whitespace
- id: debug-statements
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.19.0
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
1 change: 1 addition & 0 deletions switchbot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

from bleak_retry_connector import (
Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/blind_tilt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/bot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/bulb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Bulb parser."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/ceiling_light.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Ceiling Light adv parser."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/contact.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contact sensor parser."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/curtain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/humidifier.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Humidifier adv parser."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/light_strip.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Light strip adv parser."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/lock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Lock parser."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/meter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Meter parser."""

from __future__ import annotations

import struct
Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/motion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Motion sensor parser."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/plug.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/adv_parsers/relay_switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Relay Switch adv parser."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/base_cover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/blind_tilt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/bot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/curtain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/device.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/humidifier.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

import time
Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/lock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot Lock."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions switchbot/devices/plug.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

import time
Expand Down
1 change: 1 addition & 0 deletions switchbot/enum.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Enum backports from standard lib."""

from __future__ import annotations

from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions switchbot/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library to handle connection with Switchbot."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
Loading