astral-sh / astral-sh/ruff-pre-commit
Feature Request: predefined hooks for common uses.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 105
- Avg merge
- 8h 36m
- Merged PRs (30d)
- 1
Description
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:
```yaml
- 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!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the `.pre-commit-config.yaml` usage shown in the issue and review the repository's existing `ruff` hook entry. Add the requested `ruff-fix-all` and `ruff-check` hook options while keeping the default `ruff` hook available, then verify each can be referenced without extra arguments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100