astral-sh/ruff

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.

As of 2026-10-22 (commit 7a8f63f0d71a), astral-sh/ruff contains 1,263,129 total lines: 644,215 code, 472,592 comments, 146,322 blank, across 3,876 files in 15 languages (top: Rust 91.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-22 (commit 7a8f63f0d71a), astral-sh/ruff contains 1,263,129 total lines: 644,215 code, 472,592 comments, 146,322 blank, across 3,876 files in 15 languages (top: Rust 91.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
Rust19076888215901853097467662
Python1000245101882921263555
JSON22168791687108
TSX3165475730174643
TOML13262355272249714
YAML3160725115495462
SVG17113110247136
TypeScript1875656110491
Shell1445925513866
CSS2252222030
HTML2818100
Jinja216144017

Top language (Rust 91.6%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does astral-sh/ruff have?

astral-sh/ruff has 1,263,129 total lines, including 644,215 code lines, 472,592 comment lines, and 146,322 blank lines.

How was the astral-sh/ruff line count measured?

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.

What commit was counted for astral-sh/ruff?

This OctoCounts report was generated from main at commit 7a8f63f0d71a on 2026-10-22T05:09:25.995056470+00:00.

Similar repository reports

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 12 languages, counted by tokei.