Skip to content

pre-commit capability

pre-commit adds pre-commit hook configuration to your Go service, running code quality checks locally before every commit reaches CI.

  • Pre-commit hooks for formatting, linting, and test execution

Use pre-commit to catch issues before they reach the pull request. Fast local feedback is cheaper than CI feedback — pre-commit runs in seconds and blocks commits that would fail CI anyway.

Terminal window
verikt new my-service --language go --cap pre-commit
# or add to an existing service:
verikt add pre-commit

linting

golangci-lint run as a pre-commit hook.

testing

Tests run as a pre-commit hook.

ci-github

CI checks that mirror the pre-commit hooks.