astral-sh/ruff has 661,062 source lines of code out of 1,298,134 total lines across 3,935 files, counted with tokei from the main ref at commit d3e454ea7c0a on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit d3e454ea7c0a), astral-sh/ruff contains 1,298,134 total lines: 661,062 code, 485,034 comments, 152,038 blank, across 3,935 files in 15 languages (top language: Rust 91.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving astral-sh/ruff to commit d3e454ea7c0a, 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.
This is a large codebase by counted code lines. Code represents 50.9% of all lines, comments represent 37.4%, and the repository averages 168 code lines per file. Rust accounts for 91.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 1924 | 704991 | 604569 | 31610 | 68812 |
| Python | 1013 | 26076 | 20173 | 2208 | 3695 |
| JSON | 24 | 17201 | 17193 | 0 | 8 |
| YAML | 37 | 6784 | 5839 | 456 | 489 |
| TSX | 31 | 6549 | 5732 | 174 | 643 |
| TOML | 132 | 6245 | 5278 | 253 | 714 |
| 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 |
Top language: Rust 91.5%. Generated on .
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.
astral-sh/ruff has 661,062 lines of code, plus 485,034 comment lines and 152,038 blank lines, for 1,298,134 total lines at commit d3e454ea7c0a on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit d3e454ea7c0a, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit d3e454ea7c0a on November 16, 2026.
Play the growth animation for astral-sh/ruff on this page — 661,062 code lines across 15 languages, counted by tokei.