astral-sh / ruff-pre-commit

A pre-commit hook for Ruff.
Apache License 2.0
802 stars 38 forks source link

Feature Request: predefined hooks for common uses. #59

Open jheddings opened 7 months ago

jheddings commented 7 months ago

Just switching over to ruff from [other tools] and it has been a great experience!

A minor request would be to build more pre-commit hooks for common invocations (rather than passing arguments). This helps keep the .pre-commit-config.yaml tidy as well as gives the authors the ability to adjust arguments as needed.

Specifically, I was hoping for the following hooks:

- id: ruff-fix-all
- id: ruff-check

Of course, keeping the default ruff hook for any other custom hooks is great, too.

I'd be happy to submit a PR if this seems useful to the project. Thanks again!