Added pre-commit

This commit is contained in:
Dreaded_X 2025-02-20 04:42:53 +01:00
parent e275bfb41c
commit b531e22011
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
3 changed files with 33 additions and 0 deletions

1
.kcignore Normal file
View File

@ -0,0 +1 @@
.sops.yaml

22
.pre-commit-config.yaml Normal file
View File

@ -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

10
.typos.toml Normal file
View File

@ -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"]