Skip to content

Validation and Tooling

Théophile Diot edited this page Oct 22, 2025 · 1 revision

Pre-commit (format, spell, secrets):

  • Install hooks once:
    pre-commit install
  • Run on all files:
    pre-commit run --all-files

JSON sanity:

  • jq . templates/\<name\>/template.json

NGINX snippet lint (where applicable):

  • nginx -t -c <(printf 'events{} http{ include templates/\<name\>/configs/\<file\>.conf; }')

Service-specific checks (optional):

  • Docker Compose:
    docker compose config
  • Kubernetes dry run:
    kubectl apply --server-dry-run -f <file>

See:

Clone this wiki locally