astral-sh/ruff has 644,215 source lines of code out of 1,263,129 total lines across 3,876 files, counted from the main ref at commit 7a8f63f0d71a by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
astral-sh/ruff: 644,215 code lines at commit 7a8f63f0d71a, counted with tokei-14.0.0 on 2026-10-22. Saved result 1b41ab2f8de45b98160b2369d70bfddfc7d01ea332b72c61dafacd6c43772d28.
OctoCounts produced this report by resolving astral-sh/ruff to commit 7a8f63f0d71a, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
This is a large codebase by counted code lines. Code represents 51.0% of all lines, comments represent 37.4%, and the repository averages 166 code lines per file. Rust accounts for 91.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 1907 | 688821 | 590185 | 30974 | 67662 |
| Python | 1000 | 24510 | 18829 | 2126 | 3555 |
| JSON | 22 | 16879 | 16871 | 0 | 8 |
| TSX | 31 | 6547 | 5730 | 174 | 643 |
| TOML | 132 | 6235 | 5272 | 249 | 714 |
| YAML | 31 | 6072 | 5115 | 495 | 462 |
| 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 | 2 | 81 | 81 | 0 | 0 |
| Jinja2 | 1 | 61 | 44 | 0 | 17 |
| Dockerfile | 1 | 38 | 26 | 7 | 5 |
| Markdown | 656 | 282747 | 0 | 209731 | 73016 |
| Plain Text | 42 | 228540 | 0 | 228523 | 17 |
Top language (Rust 91.6%). Generated at .
astral-sh/ruff has 1,263,129 total lines, including 644,215 code lines, 472,592 comment lines, and 146,322 blank lines.
OctoCounts resolved the public GitHub repository to commit 7a8f63f0d71a, 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 7a8f63f0d71a on 2026-10-22T05:09:25.995056470Z.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for astral-sh/ruff on this page — 644,215 code lines across 15 languages, counted by tokei.