-
Notifications
You must be signed in to change notification settings - Fork 22
Description
https://github.com/pre-commit/pre-commit
Pre-commit itself seems to be written in python, so requires python to install
https://pre-commit.com/#install
Ruff example: https://github.com/astral-sh/ruff-pre-commit
I think the vibe of how the Ruff one works is that they have this pre commit hook yaml:
https://github.com/astral-sh/ruff-pre-commit/blob/main/.pre-commit-hooks.yaml
Note the ruff format --force-exclude
call.
And I think ruff itself gets installed from being listed as a requirement here:
https://github.com/astral-sh/ruff-pre-commit/blob/main/pyproject.toml
They do tag releases synced to each ruff version
https://github.com/astral-sh/ruff-pre-commit/tags
And this is how a user would reference that tag and call the hook:
https://github.com/astral-sh/ruff/blob/568cf88c6c5b5551a675ae2b13deedec0fe226cb/.pre-commit-config.yaml#L76-L79