aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2021-08-24 14:11:47 -0700
committerEric Kunze <eric.kunze@arm.com>2021-11-04 16:13:49 -0700
commitcc24c35c5be1967de520df60015a661b1dd6eb4c (patch)
treec6b98202a730fc7678d14e23ae3bafd3e7ad4714 /.pre-commit-config.yaml
parenta687b616fdd6d6ff7c4e84498bc3cb9789769ecf (diff)
downloadserialization_lib-cc24c35c5be1967de520df60015a661b1dd6eb4c.tar.gz
Use pre-commit to catch out of date headers
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I65983e5ddee7e4b1870530c2fb947177f5d4ca48
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 55d630f..4b4af7a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,10 +26,19 @@ repos:
- repo: local
hooks:
+ - id: regenerate-headers
+ name: regenerate-headers
+ language: system
+ entry: ./regenerate_headers.sh
+ pass_filenames: false
+ always_run: true
+
+- repo: local
+ hooks:
- id: clang-format
name: clang-format
exclude: tosa_generated.h|build|third_party
language: system
entry: clang-format
types: ["c++"]
- args: ["-i"] \ No newline at end of file
+ args: ["-i"]