From 08e196eaa9f028fe647de24249884032b606fca4 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 10 Oct 2024 22:50:45 +0200 Subject: [PATCH] add simple pre-commit config --- .mise.toml | 2 +- .pre-commit-config.yaml | 8 ++++++++ playbooks/apps/goatcounter.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.mise.toml b/.mise.toml index 203fc5f..ba7833e 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,3 +1,3 @@ [env] ANSIBLE_INVENTORY = "{{config_root}}/inventory.ini" -ANSIBLE_VAULT_PASSWORD_FILE = "{{config_root}}/vault.pass" \ No newline at end of file +ANSIBLE_VAULT_PASSWORD_FILE = "{{config_root}}/vault.pass" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..13698a1 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + args: [--unsafe] + - id: end-of-file-fixer + - id: trailing-whitespace diff --git a/playbooks/apps/goatcounter.yaml b/playbooks/apps/goatcounter.yaml index 306833e..fc0fe06 100644 --- a/playbooks/apps/goatcounter.yaml +++ b/playbooks/apps/goatcounter.yaml @@ -66,4 +66,4 @@ 3662343162643033380a326161313036643835636562636165356464393236303533303435353365 36336163313338346235396565363631366564393562326536353262363637653432643830663532 30356133383335653330613965623261323531613131663437363430636565393262353565326132 - 323830313235313462633335333763363161 \ No newline at end of file + 323830313235313462633335333763363161