supabase-operator/.husky.toml
Peter Kurfer 2ef37683cb
Some checks failed
E2E Tests / Run on Ubuntu (push) Failing after 30s
Lint / Run on Ubuntu (push) Failing after 3m3s
Tests / Run on Ubuntu (push) Failing after 3m21s
chore: add husky config
2025-01-04 17:22:41 +01:00

23 lines
411 B
TOML

[hooks]
# git hook pre commit
pre-commit = [
"go mod tidy -go=1.23",
"go run mage.go FetchImageMeta",
"go run mage.go CRDs",
"go run mage.go CRDDocs",
"husky lint-staged",
# "golangci-lint run",
]
# git hook commit msg
commit-msg = [
"husky lint-commit",
]
# list staged files do some pre-process and git add
[lint-staged]
"*.go" = [
"goimports -l -w",
"gofumpt -l -w",
]