summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorHiFiPHile <[email protected]>2026-08-25 09:27:48 +0200
committerHiFiPHile <[email protected]>2026-08-25 09:27:48 +0200
commitdfac26a272fa7bbbca2050fbe9f1ca09008e548e (patch)
treeefbc53f8f2c1e5d9c7f38e5fef6d774a20053cec /.pre-commit-config.yaml
parente590b45fcf51f9ddace73178074e4fe6d691e319 (diff)
parent5c0e31cdabaf37f14e1f5e988a020abfc1000495 (diff)
Merge master updates into the UAC1 host branch
Bring the audio work onto the current host core and build files before applying the remaining review fixes. Signed-off-by: HiFiPHile <[email protected]>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f4a297289..3d9c8482b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,6 +33,13 @@ repos:
- repo: local
hooks:
+ - id: unique-example-pids
+ name: unique example USB PIDs
+ files: usb_descriptors\.c$
+ entry: python3 tools/check_example_pids.py
+ pass_filenames: false
+ language: system
+
- id: unit-test
name: unit-test
files: ^(src/|test/unit-test/)
@@ -41,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/)