feat(ci): add error code registration check to the pre-commit hook

This commit is contained in:
Guillaume Souchere
2026-04-08 07:59:40 +02:00
parent d670774f5c
commit 23b8a17d3f
3 changed files with 153 additions and 0 deletions

View File

@@ -189,6 +189,12 @@ repos:
)$
pass_filenames: false
verbose: true
- id: check-err-codes-registration
name: Check error code headers are registered
entry: tools/ci/check_err_codes_registration.py
language: python
files: 'components/.+\.h$|components/.+CMakeLists\.txt$'
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks: