Husky git hooks work really well with Astro. If you install Husky, you can first add a prettier formatting script to your project package.json file. For example: `"prettier:check": "prettier --check --plugin=prettier-plugin-astro ."`. Then add a Husky pre-commit script, to run just before each commit: `pnpm husky add .husky/pre-commit "pnpm prettier:check"`. In this case, if formatting is not quite right, the commit will fail, giving you a chance to fix it before finally committing a pristine version!