pre-commit hooks and build on install