From 5e4caa81d0dcd1c60a9c44bb3e08b02ef11ee546 Mon Sep 17 00:00:00 2001
From: danthorpe <danthorpe@users.noreply.github.com>
Date: Wed, 10 Apr 2024 14:05:01 +0100
Subject: [PATCH] feat: add pre-commit hooks

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

diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml
new file mode 100644
index 00000000..f7fd11fa
--- /dev/null
+++ b/.pre-commit-hooks.yaml
@@ -0,0 +1,6 @@
+- id: swift-format
+  name: swift-format
+  entry: swift-format format --in-place --recursive --parallel
+  language: swift
+  types: [swift]
+  require_serial: true