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.

LanguageFilesLinesCodeCommentsBlanks
Rust19247105746096083178569181
Python1015257332030117323700
JSON24173851737708
YAML3767995930396473
TSX3165495732174643
TOML13363035322258723
SVG17113110247136
TypeScript1875656110491
Shell1445925513866
CSS2252222030
HTML312512500
Jinja228059021
Dockerfile1433265
Markdown690304795022570579090
Plain Text41228540022852317

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

Reproduce this exact report and configuration.

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:

Play the growth animation for astral-sh/ruff on this page — 666,548 code lines across 15 languages, counted by tokei.