From b531e2201154f04bb85ee6196f8998bf8f4fea9a Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Thu, 20 Feb 2025 04:42:53 +0100 Subject: [PATCH] Added pre-commit --- .kcignore | 1 + .pre-commit-config.yaml | 22 ++++++++++++++++++++++ .typos.toml | 10 ++++++++++ 3 files changed, 33 insertions(+) create mode 100644 .kcignore create mode 100644 .pre-commit-config.yaml create mode 100644 .typos.toml diff --git a/.kcignore b/.kcignore new file mode 100644 index 0000000..674502c --- /dev/null +++ b/.kcignore @@ -0,0 +1 @@ +.sops.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..172a508 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + args: + - --allow-multiple-documents + - id: check-added-large-files + - id: check-merge-conflict + + - repo: https://github.com/crate-ci/typos + rev: v1.29.8 + hooks: + - id: typos + args: ["--force-exclude"] + + - repo: git@huizinga.dev:Dreaded_X/cluster-crds.git + rev: 8d20df4246389407e500c182e68034863e6aab09 + hooks: + - id: kubeconform diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..1fc80e0 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,10 @@ +[default] +# Ignore +extend-ignore-re = [ + "-{5}BEGIN PGP MESSAGE-{5}(?:$|[^-]{63,}-{5}END PGP MESSAGE-{5})", + "-{5}BEGIN PGP PUBLIC KEY BLOCK-{5}(?:$|[^-]{63,}-{5}END PGP PUBLIC KEY BLOCK-{5})", +] + +[files] +# Ignore generated files +extend-exclude = ["gotk-components.yaml", "gotk-sync.yaml"]