astral-sh/ruff
GitHubAn extremely fast Python linter and code formatter, written in Rust.
- linter
- pep8
- python
- python3
- ruff
- rust
- rustpython
- static-analysis
- static-code-analysis
- style-guide
- styleguide
- Stars:
- 50.4k
- Language:
- Rust
- Default branch:
- main
- Last scored:
At a glance
- Rank
- #17 of 401
- Top 4% · #3 of 45 Rust repos
- Checks passed
- 11 of 17
- Full list below
- Best set up for
- Kimi Code CLI
- Score 92.1
- Needs most work for
- Aider
- Biggest fix: .aider.conf.yml (+14.1 pts)
What it has
What it's missing
What to fix first
Showing fixes for Claude Code
- 1Manageable sizeIf possible, split into smaller modules or carve out a focused entry path. Document where to start in AGENTS.md.+5.3 pts
- 2Test suiteAdd a tests/ (or test/, __tests__/, spec/) directory with runnable tests. Document how to run them in AGENTS.md.+3.9 pts
Score for each AI agent
Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →
Does astral-sh/ruff have agent instructions?
An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.
- AGENTS.md / CLAUDE.md
AGENTS.md(new tab) · 20,377 characters- Agent-specific files
.agents/skills(new tab) (6 skills)No GEMINI.md, .cursor/rules, .openhands/setup.sh or .aider.conf.yml- Repos that have one
- 24 of 45 Rust repos · 221 of 401 repos on the leaderboard · See examples →
All 17 checks · 11 passed
How astral-sh/ruff compares
- vs leaderboard average
- 19.5 pts above
- Average 66.8
- vs Rust average
- 15.7 pts above
- Average 70.6
- Stars among Rust repos
- #17 of 45
Missing here, and how many repos have it
- Cursor rules (.cursor/rules) · passed by 4% of leaderboard repos, 2% of Rust repos
Passes checks most repos miss
- Skills (.agents/skills) · only 17% of repos pass it
- Reproducible dev env · only 22% of repos pass it
- Pre-commit / git hooks · only 29% of repos pass it
One fix for the most agents: Manageable size would raise the score for all 9 agents, by up to 5.7 points.
Similar repos
Same language and host as this repo, closest in overall score.
- Rust · 6.8k ★
- Rust · 33.3k ★
- pnpm/pnpm86.3Rust · 37k ★
- qdrant/qdrant82.7Rust · 35.4k ★
- oxc-project/oxc81.3Rust · 23.3k ★
- denoland/deno80.9Rust · 108.8k ★
Same topics, any language
Repos tagged with the same GitHub topics, most shared first.
- biomejs/biome77.8Rust · linter, static code analysis
- eslint/eslint71.1JavaScript · linter, static code analysis
- facebook/infer56.4OCaml · static analysis, static code analysis
- phpstan/phpstan49.0PHP · static analysis, static code analysis
- detekt/detekt70.9Kotlin · linter, static analysis
- Clojure · linter, static analysis
Add a badge to your README
Paste this at the top of the README. It shows the score, and links back to this page.
[](https://agentfriendlycode.com/repo/github/astral-sh/ruff)Check the score on every pull request
A GitHub Action posts one comment per pull request with how the score changed and why.