diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e7b8515e1796..ee1f30f5c1f2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,8 @@ repos: args: - --fix - id: ruff-format - files: ^((homeassistant|packages|script|tests)/.+)?[^/]+\.(py|pyi)$ + types_or: [markdown, python, pyi] + files: ^(((homeassistant|packages|script|tests)/.+)?[^/]+\.(py|pyi)|.+\.md)$ - repo: https://github.com/codespell-project/codespell rev: v2.4.3 hooks: