summaryrefslogtreecommitdiff
path: root/tiger-compiler/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/.pre-commit-config.yaml
add: added projectsHEADmain
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