summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorHiFiPHile <[email protected]>2026-08-25 09:55:24 +0200
committerHiFiPHile <[email protected]>2026-09-02 10:50:02 +0200
commita0d3de76869ce728c7c1d9713085bc970da39671 (patch)
treebd24f3efb60daeda2e0aaf4df08da97504aafbf3 /.pre-commit-config.yaml
parent278c0531a07e4fe8112ef91d0d2dbba8ef0a40b3 (diff)
parent5c0e31cdabaf37f14e1f5e988a020abfc1000495 (diff)
Merge branch 'master' into agent/fix-dwc2-host-fifo-allocation
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e87b935dd..3d9c8482b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -48,6 +48,27 @@ repos:
types_or: [c, header]
language: system
+ # Two hooks, split by what each suite actually reads. The full discovery run costs
+ # ~55s (deliberate hang/timeout simulations); only test_hil_select (~0.1s) reads
+ # hw/bsp (board.cmake), src (portable dirs + class include graph) and examples
+ # (tusb_config.h per test) -- renaming a board, port dir or example breaks it without
+ # touching test/hil, and catching that here beats waiting for pre-commit CI.
+ # No types_or: the rig rosters (*.json) are inputs too.
+ # examples/device/mtp/src is in scope: test_hil_bounded parses README_TXT_CONTENT
+ # and md5-checks the logo header from there as its MTP fixtures.
+ - id: hil-test
+ name: hil-test
+ files: ^(test/hil/|examples/device/mtp/src/)
+ entry: python3 -m unittest discover -s test/hil/test
+ pass_filenames: false
+ language: system
+ - id: hil-select-test
+ name: hil-select-test
+ files: ^(hw/bsp/|src/|examples/)
+ entry: python3 test/hil/test/test_hil_select.py
+ pass_filenames: false
+ language: system
+
# - id: build-fuzzer
# name: build-fuzzer
# files: ^(src/|test/fuzz/)