aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2023-09-07 01:36:07 +0000
committerEric Kunze <eric.kunze@arm.com>2023-09-22 20:13:42 +0000
commit99f8f9fb4cc93f089209772d7d1c3b45ca399437 (patch)
treefcb9caaf223553607c1d9c0a632b169a1624ee16 /.pre-commit-config.yaml
parentc63d0f6d74483db837700633a7512a30f6d52c1c (diff)
downloadreference_model-99f8f9fb4cc93f089209772d7d1c3b45ca399437.tar.gz
Add check of operator API to precommit
Attempt to avoid API getting out of sync. Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: Ic7b72c3f906e4a38cb26159bb67e9b1c4e22ca96
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 4a6c9c7..2c72a26 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,4 +37,13 @@ repos:
language: system
entry: clang-format
types: ["c++"]
- args: ["-i"] \ No newline at end of file
+ args: ["-i"]
+
+- repo: local
+ hooks:
+ - id: check-operator-api
+ name: check-operator-api
+ language: system
+ entry: python3 scripts/operator_api/generate_api.py
+ pass_filenames: false
+ always_run: true