Installation¶
Current version: 2.0.0
Using pre-commit framework¶
The recommended way to use pre-commit-snippets is with the pre-commit framework.
Add this to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/RemoteRabbit/pre-commit-snippets
rev: v0.1.0 # Use the latest tag
hooks:
- id: snippet-sync
Then install the hooks:
Using pip¶
Install directly with pip:
Then run manually or add to your workflow:
Manual installation¶
Clone the repository and run directly:
git clone https://github.com/RemoteRabbit/pre-commit-snippets.git
cd pre-commit-snippets
python main.py
Requirements¶
- Python 3.9 or higher
- Git (for cloning snippet repositories)