From 03e1981148c094a4f496d037183897c325f7daa6 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Tue, 6 Aug 2024 10:03:57 +0200 Subject: [PATCH 1/2] Improve pre-commit hooks --- .pre-commit-config.yaml | 2 -- 1 file changed, 2 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: From c1c861b1b9f99552113e2dada0ee074e714f5716 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Tue, 6 Aug 2024 10:22:27 +0200 Subject: [PATCH 2/2] Apply isort --- components/xiaomi_ble/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]