Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

Pre-commit Hooks for Terraform and Python: 6 Tips That Stick

Originally published on kuryzhev.cloud A pull request with forty comments that all say "run terraform fmt" or "remove the unused import" is a familiar sight. Pre-commit hooks move those checks to the developer's machine, before the commit exists.

  • Pin hook revision to specific SHA to ensure consistency
  • Combine Terraform hooks with Python linters like Ruff
  • Run slow checks as pre-push stage to catch issues early

More from Monday 19 October →