astral-sh / astral-sh/ruff

[Feature Request] Add pre-commit rules.

Open
#4,073 6 comments 6 reactions 0 assignees View on GitHub
needs-decision plugin
Dominant language
Rust
Stars
49.7k
Forks
2.4k
Avg merge
2d 1h
Merged PRs (30d)
458

Description

Thank you for the great work on `ruff`! I would like to ask if the official hooks in the `pre-commit` repository could be implemented in `ruff`. While these are not always related to Python, they are very commonly used and implementing them in `ruff` would benefit many projects. Some rules already overlap, such as finding `breakpoint()` code, but implementing the rest may be beneficial.

Link: https://github.com/pre-commit/pre-commit-hooks

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the official hooks listed in the linked pre-commit repository and compare them with the rules already present in ruff, including the breakpoint() overlap mentioned in the issue. Define which remaining hooks are in scope and verify that each selected hook is implemented and covered by appropriate ruff tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.