Skip to content

Commit d4d3144

Browse files
committed
Add CRAI suggestion
1 parent 2a9dcd5 commit d4d3144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ repos:
8383
- repo: local
8484
hooks:
8585
- id: parsetest
86-
name: "parsetest"
86+
name: "Generate AirOS Fixtures"
8787
entry: script/run-in-env.sh python script/generate_ha_fixture.py
8888
language: script
8989
types: [python]
90+
# Run when Python changes (to refresh against code changes) and when userdata JSON changes
91+
files: ^(airos|tests|script)/.+\.py$|^fixtures/userdata/.+\.json$
9092
pass_filenames: false
9193
- id: pytest
9294
name: "pytest"

0 commit comments

Comments
 (0)