# astral-sh/ruff SLOC report

> 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](https://github.com/astral-sh/ruff) · counted commit [77203ea5529a](https://github.com/astral-sh/ruff/tree/77203ea5529a70e55edb0857224eb05b286a077d)

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.

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.

## 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.

## 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 | 1,924 | 710,574 | 609,608 | 31,785 | 69,181 |
| Python | 1,015 | 25,733 | 20,301 | 1,732 | 3,700 |
| JSON | 24 | 17,385 | 17,377 | 0 | 8 |
| YAML | 37 | 6,799 | 5,930 | 396 | 473 |
| TSX | 31 | 6,549 | 5,732 | 174 | 643 |
| TOML | 133 | 6,303 | 5,322 | 258 | 723 |
| SVG | 17 | 1,131 | 1,024 | 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 | 304,795 | 0 | 225,705 | 79,090 |
| Plain Text | 41 | 228,540 | 0 | 228,523 | 17 |

Top language: Rust 91.5%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/astral-sh/ruff/commit/77203ea5529a70e55edb0857224eb05b286a077d?reportId=60031f9f8cc8eb1a9c2c901de9ad981dd4f120bdcc675e1bbcd5d35ab7ec52e8&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/astral-sh/ruff/commit/77203ea5529a70e55edb0857224eb05b286a077d?reportId=60031f9f8cc8eb1a9c2c901de9ad981dd4f120bdcc675e1bbcd5d35ab7ec52e8&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## 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

- [storytold/photocraft](https://octocounts.com/github/storytold/photocraft) — Rust, 665,295 code lines
- [oxc-project/tsrs](https://octocounts.com/github/oxc-project/tsrs) — Rust, 665,182 code lines
- [jdx/mise](https://octocounts.com/github/jdx/mise) — Rust, 665,024 code lines
- [BigPizzaV3/CodexPlusPlus](https://octocounts.com/github/BigPizzaV3/CodexPlusPlus) — Rust, 664,239 code lines
- [pingdotgg/ts-rust](https://octocounts.com/github/pingdotgg/ts-rust) — Rust, 670,834 code lines
- [kupkoXD/photocraft](https://octocounts.com/github/kupkoXD/photocraft) — Rust, 672,201 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Black vs Ruff](https://octocounts.com/compare/black-vs-ruff)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
