From e8eec79b04190b3e005476f629b5d678ca54f7bd Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 17 Nov 2024 20:58:48 +0100 Subject: [PATCH] Improve pre-commit hooks (#87) --- .pre-commit-config.yaml | 2 -- components/xiaomi_ble/__init__.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1580f10..6ea3234 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,6 @@ repos: args: - --safe - --quiet - files: ^((components|esphome|script|tests)/.+)?[^/]+\.py$ - repo: https://github.com/PyCQA/flake8 rev: 7.1.0 hooks: @@ -30,7 +29,6 @@ repos: additional_dependencies: - flake8-docstrings==1.5.0 - pydocstyle==5.1.1 - files: ^(components|esphome|tests)/.+\.py$ - repo: https://github.com/asottile/pyupgrade rev: v3.17.0 hooks: diff --git a/components/xiaomi_ble/__init__.py b/components/xiaomi_ble/__init__.py index 046adc6..541a0e7 100644 --- a/components/xiaomi_ble/__init__.py +++ b/components/xiaomi_ble/__init__.py @@ -1,6 +1,6 @@ import esphome.codegen as cg -import esphome.config_validation as cv from esphome.components import esp32_ble_tracker +import esphome.config_validation as cv from esphome.const import CONF_ID DEPENDENCIES = ["esp32_ble_tracker"]