astral-sh/ruff
astral-sh/ruff has 666,548 source lines of code out of 1,309,524 total lines across 3,952 files, counted with tokei from the main ref at commit 77203ea5529a on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
astral-sh/ruff: 666,548 code lines at commit 77203ea5529a, counted with tokei-15.0.0 on 2026-11-24. Saved result 60031f9f8cc8eb1a9c2c901de9ad981dd4f120bdcc675e1bbcd5d35ab7ec52e8.
Source: astral-sh/ruff on GitHub · counted commit 77203ea5529a
OctoCounts produced this report by resolving astral-sh/ruff to commit 77203ea5529a, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
Repository size insights
This is a large codebase by counted code lines. Code represents 50.9% of all lines, comments represent 37.3%, and the repository averages 169 code lines per file. Rust accounts for 91.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 1924 | 710574 | 609608 | 31785 | 69181 |
| Python | 1015 | 25733 | 20301 | 1732 | 3700 |
| JSON | 24 | 17385 | 17377 | 0 | 8 |
| YAML | 37 | 6799 | 5930 | 396 | 473 |
| TSX | 31 | 6549 | 5732 | 174 | 643 |
| TOML | 133 | 6303 | 5322 | 258 | 723 |
| SVG | 17 | 1131 | 1024 | 71 | 36 |
| TypeScript | 18 | 756 | 561 | 104 | 91 |
| Shell | 14 | 459 | 255 | 138 | 66 |
| CSS | 2 | 252 | 222 | 0 | 30 |
| HTML | 3 | 125 | 125 | 0 | 0 |
| Jinja2 | 2 | 80 | 59 | 0 | 21 |
| Dockerfile | 1 | 43 | 32 | 6 | 5 |
| Markdown | 690 | 304795 | 0 | 225705 | 79090 |
| Plain Text | 41 | 228540 | 0 | 228523 | 17 |
Top language: Rust 91.5%. Generated on .
Counting rules and retention
astral-sh/ruff: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
Reproduce this report
Report FAQ
How many lines of code does astral-sh/ruff have?
astral-sh/ruff has 666,548 lines of code, plus 488,892 comment lines and 154,084 blank lines, for 1,309,524 total lines at commit 77203ea5529a on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
How was the astral-sh/ruff line count measured?
OctoCounts resolved the public GitHub repository to commit 77203ea5529a, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for astral-sh/ruff?
This OctoCounts report was generated from main at commit 77203ea5529a on November 24, 2026.
Similar repository reports
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
- storytold/photocraft — Rust, 665,295 code lines
- oxc-project/tsrs — Rust, 665,182 code lines
- jdx/mise — Rust, 665,024 code lines
- BigPizzaV3/CodexPlusPlus — Rust, 664,239 code lines
- pingdotgg/ts-rust — Rust, 670,834 code lines
- kupkoXD/photocraft — Rust, 672,201 code lines
Play the growth animation for astral-sh/ruff on this page — 666,548 code lines across 15 languages, counted by tokei.