summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-15 17:40:02 +0700
committerhathach <[email protected]>2023-03-15 19:30:35 +0700
commitffa56a1beb724397e434e5e74e2a7b1d4583acd8 (patch)
tree8b16e26d9885f5e8b1ada7b4376b1de281f22bd5
parentd9a9dc5ac0a9679403a75dbe3a32c4d4678998e6 (diff)
add pre-commit yaml
-rw-r--r--.pre-commit-config.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 000000000..5a61f5282
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,20 @@
+# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
+#
+# SPDX-License-Identifier: Unlicense
+
+repos:
+- repo: local
+ hooks:
+ - id: codespell
+ name: codespell
+ entry: codespell
+ types_or: [c, header]
+ language: system
+
+ - id: unit-test
+ name: unit-test
+ files: ^(src/|test/unit-test/)
+ entry: sh -c "cd test/unit-test && ceedling test:all"
+ pass_filenames: false
+ types_or: [c, header]
+ language: system