add caddy fmt pre-commit hook

This commit is contained in:
Gabriel Augendre 2024-10-11 16:51:42 +02:00
parent 045933d7d4
commit 624fb2492a
4 changed files with 10 additions and 1 deletions

View file

@ -4,3 +4,4 @@ strict: true
exclude_paths: exclude_paths:
- "**/*docker-compose.yaml" - "**/*docker-compose.yaml"
- .github/ - .github/
- .pre-commit-config.yaml

View file

View file

@ -5,6 +5,7 @@ ci:
# build of https://github.com/ansible/ansible-lint:ansible@v24.9.2 for python@python3 exceeds tier max size 250MiB: 405.6MiB # build of https://github.com/ansible/ansible-lint:ansible@v24.9.2 for python@python3 exceeds tier max size 250MiB: 405.6MiB
- ansible-lint - ansible-lint
- ggshield - ggshield
- caddy-fmt
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
@ -37,3 +38,10 @@ repos:
rev: v1.32.1 rev: v1.32.1
hooks: hooks:
- id: ggshield - id: ggshield
- repo: local
hooks:
- id: caddy-fmt
name: caddy fmt
language: system
entry: caddy fmt --overwrite
files: Caddyfile

View file

@ -142,7 +142,7 @@ ghost.augendre.info {
import common_headers import common_headers
redir / /ghost/ redir / /ghost/
reverse_proxy localhost:2368 reverse_proxy localhost:2368
} }
voyages-lois.augendre.info { voyages-lois.augendre.info {