Browse Source

chore(pre-commit.ci): pre-commit autoupdate (#273)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
pre-commit-ci[bot] 1 month ago
parent
commit
6f297c940a

+ 7 - 7
.pre-commit-config.yaml

@@ -1,7 +1,7 @@
 # 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"
@@ -9,12 +9,12 @@ ci:
 
 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
@@ -29,11 +29,11 @@ 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
@@ -41,10 +41,10 @@ repos:
     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 - 0
switchbot/__init__.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 from bleak_retry_connector import (

+ 1 - 0
switchbot/adv_parsers/blind_tilt.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/bot.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/bulb.py

@@ -1,4 +1,5 @@
 """Bulb parser."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/ceiling_light.py

@@ -1,4 +1,5 @@
 """Ceiling Light adv parser."""
+
 from __future__ import annotations
 
 import logging

+ 1 - 0
switchbot/adv_parsers/contact.py

@@ -1,4 +1,5 @@
 """Contact sensor parser."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/curtain.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/humidifier.py

@@ -1,4 +1,5 @@
 """Humidifier adv parser."""
+
 from __future__ import annotations
 
 import logging

+ 1 - 0
switchbot/adv_parsers/light_strip.py

@@ -1,4 +1,5 @@
 """Light strip adv parser."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/lock.py

@@ -1,4 +1,5 @@
 """Lock parser."""
+
 from __future__ import annotations
 
 import logging

+ 1 - 0
switchbot/adv_parsers/meter.py

@@ -1,4 +1,5 @@
 """Meter parser."""
+
 from __future__ import annotations
 
 import struct

+ 1 - 0
switchbot/adv_parsers/motion.py

@@ -1,4 +1,5 @@
 """Motion sensor parser."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/plug.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/adv_parsers/relay_switch.py

@@ -1,4 +1,5 @@
 """Relay Switch adv parser."""
+
 from __future__ import annotations
 
 

+ 1 - 0
switchbot/devices/base_cover.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 import logging

+ 1 - 0
switchbot/devices/blind_tilt.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 import logging

+ 1 - 0
switchbot/devices/bot.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 import logging

+ 1 - 0
switchbot/devices/curtain.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 import logging

+ 1 - 0
switchbot/devices/device.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 import asyncio

+ 1 - 0
switchbot/devices/humidifier.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 import time

+ 1 - 0
switchbot/devices/lock.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot Lock."""
+
 from __future__ import annotations
 
 import asyncio

+ 1 - 0
switchbot/devices/plug.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 import time

+ 1 - 0
switchbot/enum.py

@@ -1,4 +1,5 @@
 """Enum backports from standard lib."""
+
 from __future__ import annotations
 
 from enum import Enum

+ 1 - 0
switchbot/models.py

@@ -1,4 +1,5 @@
 """Library to handle connection with Switchbot."""
+
 from __future__ import annotations
 
 from dataclasses import dataclass