Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Conversation

@zamderax
Copy link
Member

Summary

Added git hooks to ensure code is properly formatted before commits. The pre-commit hook runs cargo fmt --check and prevents commits if formatting issues are detected.

Changes

  • Added .githooks/pre-commit hook that checks formatting
  • Created setup-hooks.sh for Unix/Linux/macOS users
  • Created setup-hooks.bat for Windows users
  • Updated README with setup instructions

Usage

Developers can set up the hooks by running:

  • Unix/Linux/macOS: ./setup-hooks.sh
  • Windows: setup-hooks.bat

This ensures consistent code formatting across all contributions.

🤖 Generated with Claude Code

Developer added 2 commits July 28, 2025 21:28
- Added pre-commit hook that runs cargo fmt --check
- Created setup scripts for both Unix and Windows platforms
- Updated README with instructions for setting up git hooks
- Ensures all code is properly formatted before commits

Developers can set up hooks by running setup-hooks.sh (Unix) or setup-hooks.bat (Windows)
@zamderax zamderax merged commit f8b7a1a into main Jul 29, 2025
3 checks passed
@zamderax zamderax deleted the feat/add-formatting-hooks branch July 29, 2025 04:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants