diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4757fa..f5312c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -91,7 +91,7 @@ repos: - id: actionlint - repo: https://github.com/pycqa/flake8 - rev: "7.0.0" + rev: "7.1.0" hooks: - id: flake8 additional_dependencies: @@ -104,7 +104,7 @@ repos: args: [ "-d", "{rules: {line-length: {max: 120}}, ignore-from-file: [.gitignore],}", ] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.8 + rev: v0.4.9 hooks: - id: ruff files: ^(scripts|tests|custom_components)/.+\.py$ @@ -112,6 +112,14 @@ repos: - id: ruff-format files: ^(scripts|tests|custom_components)/.+\.py$ + - repo: local + hooks: + - id: mypy-cache + name: "create mypy cache" + language: system + pass_filenames: false + entry: bash -c 'if [ ! -d .mypy_cache ]; then /bin/mkdir .mypy_cache; fi; exit 0' + - repo: https://github.com/pre-commit/mirrors-mypy rev: "v1.10.0" hooks: