From 7705f6f6afe8842198e2e751944cba439e93dabd Mon Sep 17 00:00:00 2001
From: Giles Westwood <giles.westwood@gmail.com>
Date: Tue, 19 Nov 2024 12:39:22 +0000
Subject: [PATCH] add a simple pre commit file to allow syntax checks of github
 actions

---
 .pre-commit-config.yaml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 .pre-commit-config.yaml

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..764fd284
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,37 @@
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.4.0
+    hooks:
+      - id: check-added-large-files
+        name: check for added large files
+        description: prevents giant files from being committed.
+        entry: check-added-large-files
+        language: python
+        stages: [commit, push, manual]
+        exclude: ^tx
+
+  - repo: local
+    hooks:
+      - id: actionlint
+        name: actionlint
+        entry: actionlint
+        language: golang
+        additional_dependencies:
+          [github.com/rhysd/actionlint/cmd/actionlint@v1.6.23]
+        types: [yaml]
+        files: '^.github/workflows/'
+
+##########
+# pre-commit-ci config
+
+ci:
+  autofix_commit_msg: |
+    [pre-commit.ci] auto fixes from pre-commit.com hooks
+
+    for more information, see https://pre-commit.ci
+  autofix_prs: true
+  autoupdate_branch: ''
+  autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
+  autoupdate_schedule: weekly
+  skip: []
+  submodules: false