Visual Studio Code pre-commit snippets provide easy configuration for your favorite git hooks.
The "pre-commit Snippets" extension includes snippets for a variety of pre-commit hooks, including:
To use a snippet, simply start typing the name of the hook in your
.pre-commit-config.yaml
file, and select the snippet from the autocomplete dropdown.
Start with the hook
snippet to initialize your .pre-commit-config.yaml
file.
A .pre-commit-config.yaml
-file for adding your snippets.
There are currently no known issues. If you encounter a problem, please report it on the issue tracker.
Add ruff-format hook to pre-commit.
Initial release of pre-commit Snippets.
See also: Changelog