A pre-commit hook for Ruff.
Star History
Momentum
+51
STARS · LAST 30 DAYS
2
PER DAY
#256
MOST-STARRED Python
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +14 | +51 | +180 |
| Per day | 2 | 2 | 2 |
| Forks gained | +1 | +3 | +10 |
ruff-pre-commit gained 51 stars in the last 30 days, about 2 a day, and now has 2K. It is about 4 years old and has averaged roughly 505 stars a year. It ranks #256 among Python repositories and #1,888 across all languages on GitHubRepo.
Trending Record
5
DAYS ON TRENDING
#823
BEST RANK
Sep 24, 2026
FIRST APPEARANCE
Active
STATUS TODAY
ruff-pre-commit has maintained a continuous presence across global trending indexes, peaking at #823. Below is the 30-day activity profile:
💡 Overview
ruff-pre-commit is an open-source project written in Python: A pre-commit hook for Ruff.
Engineered for speed, consistency, and developer ease, it solves common hurdles in Python. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
⚡ Key Features
Optimized execution pipeline written in Python for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
📥 Installation
$ pip install ruff-pre-commit
⚙ System Requirements
Platforms
- • macOS
- • Linux
- • Windows
Runtime & Dependencies
Python >= 3.9, pip, virtualenv
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
🧠 How It Works
ruff-pre-commit coordinates its core functionality through a modular Python pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
🎯 Production Use Cases
Production System Integration
Embed ruff-pre-commit into Python backend services to handle core application logic.
CI/CD Automated Pipelines
Run automated validation, builds, and integration suites during deployments.
Developer Tooling & Workflows
Accelerate developer onboarding with pre-configured project utilities.
Open Source Extension
Fork and customize internal modules under the repository's open Apache-2.0 license.
🚀 Getting Started
Install ruff-pre-commit using your package manager: `pip install ruff-pre-commit`
Initialize your project workspace or configuration file for ruff-pre-commit.
Import ruff-pre-commit into your codebase or invoke it directly from your terminal.
Execute your test suite or run `ruff-pre-commit --help` to verify successful setup.
👍 Strengths
⚠️ Considerations
⇄ Alternatives & Direct Competitors
👥 Who Should Use This
Developers and engineering teams building with Python, seeking reliable, tested, and actively maintained tooling for production workloads.
🏆 Nearby in the Rankings
astral-sh/ruff-pre-commit is currently ranked #1,888 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #1,883 | ezEngine/ezEngine | C++ | ★ 2K | Compare ↗ |
| #1,883 | noborus/ov | Go | ★ 2K | Compare ↗ |
| #1,885 | langgraph4j/langgraph4j | Java | ★ 2K | Compare ↗ |
| #1,886 | EKA2L1/EKA2L1 | C++ | ★ 2K | Compare ↗ |
| #1,886 | GermanCoding/SyncTrayzor | C# | ★ 2K | Compare ↗ |
| #1,888 | astral-sh/ruff-pre-commit This Project | Python | ★ 2K | |
| #1,889 | andyrewlee/awesome-agent-orchestrators | — | ★ 2K | Compare ↗ |
| #1,890 | nginx/nginx-prometheus-exporter | Go | ★ 2K | Compare ↗ |
| #1,891 | attr-encrypted/attr_encrypted | Ruby | ★ 2K | Compare ↗ |
| #1,891 | TalismanDesign/PocketMage_PDA | C++ | ★ 2K | Compare ↗ |
| #1,893 | matrixorigin/matrixone | Go | ★ 2K | Compare ↗ |
Frequently Asked Questions
What does ruff-pre-commit do? +
A pre-commit hook for Ruff.
What language is ruff-pre-commit written in? +
The primary language is Python. Topics include: software.
Is ruff-pre-commit actively maintained? +
Yes, the last recorded push was on Sep 24, 2026 with 22 open issues being tracked.
How many stars does ruff-pre-commit have? +
ruff-pre-commit has 2,021 stars and 105 forks on GitHub.
How does ruff-pre-commit rank among GitHub repositories? +
With 2,021 stars, astral-sh/ruff-pre-commit is ranked #1,888 globally across all repositories tracked on GitHubRepo and #256 among Python projects.
What license is ruff-pre-commit distributed under? +
The repository reports a Apache-2.0 license. Always verify the repository LICENSE file for legal terms.