mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 16:48:58 +00:00
dee550a831
Co-authored-by: houseme <housemecn@gmail.com>
12 lines
455 B
Makefile
12 lines
455 B
Makefile
## —— Pre Commit Checks ----------------------------------------------------------------------------
|
|
|
|
.PHONY: setup-hooks
|
|
setup-hooks: ## Set up git hooks
|
|
@echo "🔧 Setting up git hooks..."
|
|
chmod +x .git/hooks/pre-commit
|
|
@echo "✅ Git hooks setup complete!"
|
|
|
|
.PHONY: pre-commit
|
|
pre-commit: fmt unsafe-code-check architecture-migration-check clippy-check compilation-check test ## Run pre-commit checks
|
|
@echo "✅ All pre-commit checks passed!"
|