summaryrefslogtreecommitdiff
path: root/tiger-compiler/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/.pre-commit-config.yaml')
-rw-r--r--tiger-compiler/.pre-commit-config.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tiger-compiler/.pre-commit-config.yaml b/tiger-compiler/.pre-commit-config.yaml
new file mode 100644
index 0000000..e61f35a
--- /dev/null
+++ b/tiger-compiler/.pre-commit-config.yaml
@@ -0,0 +1,17 @@
+repos:
+- repo: local
+ hooks:
+ - id: clang-format
+ name: coding style
+ entry: clang-format --Werror --dry-run
+ language: system
+ files: \.(c|h)$
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v2.3.0
+ hooks:
+ - id: trailing-whitespace
+ exclude: ^tests/
+- repo: https://github.com/jumanjihouse/pre-commit-hooks
+ rev: 2.1.4
+ hooks:
+ - id: forbid-binary