From e8aa93b2f8fea031c3a3d983ecefe81321079708 Mon Sep 17 00:00:00 2001 From: Antony Male Date: Wed, 22 Jan 2025 11:13:42 +0000 Subject: [PATCH] Re-enable mypy --- .pre-commit-config.yaml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7da9194..6ecd149 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,16 +23,14 @@ repos: rev: v0.0.275 hooks: - id: ruff -# Temporarily disabled due to crash, probably caused by us having to use HA stubs which are out of date? -# See https://github.com/nathanmarlor/foxess_modbus/actions/runs/12610946302/job/35146070831?pr=720 -# - repo: https://github.com/pre-commit/mirrors-mypy -# rev: v1.5.1 -# hooks: -# - id: mypy -# # These are duplicated from requirements.txt -# additional_dependencies: -# [ -# homeassistant-stubs==2024.12.5, -# types-python-slugify==8.0.0.2, -# voluptuous-stubs==0.1.1, -# ] + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.5.1 + hooks: + - id: mypy + # These are duplicated from requirements.txt + additional_dependencies: + [ + homeassistant-stubs==2025.1.0, + types-python-slugify==8.0.0.2, + voluptuous-stubs==0.1.1, + ]