diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87c7d9e9102..952729caf09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -114,11 +114,18 @@ repos: pass_filenames: false language: script types: [text] - files: ^(homeassistant/.+/(manifest|strings)\.json|\.coveragerc|\.strict-typing|homeassistant/.+/services\.yaml|script/hassfest/.+\.py)$ + files: ^(homeassistant/.+/(manifest|strings)\.json|\.coveragerc|homeassistant/.+/services\.yaml|script/hassfest/(?!metadata|mypy_config).+\.py)$ - id: hassfest-metadata name: hassfest-metadata entry: script/run-in-env.sh python3 -m script.hassfest -p metadata pass_filenames: false language: script types: [text] - files: ^(script/hassfest/.+\.py|homeassistant/const\.py$|setup\.cfg)$ + files: ^(script/hassfest/metadata\.py|homeassistant/const\.py$|setup\.cfg)$ + - id: hassfest-mypy-config + name: hassfest-mypy-config + entry: script/run-in-env.sh python3 -m script.hassfest -p mypy_config + pass_filenames: false + language: script + types: [text] + files: ^(script/hassfest/mypy_config\.py|\.strict-typing|mypy\.ini)$