# astral-sh/ruff SLOC report

> As of 2026-08-26 (commit 007157d47915), astral-sh/ruff contains 1,108,411 total lines: 600,198 code, 381,557 comments, 126,656 blank, across 3,737 files in 14 languages (top: Rust 91.6%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving astral-sh/ruff to commit 007157d47915, 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 54.1% of all lines, comments represent 34.4%, and the repository averages 161 code lines per file. Rust accounts for 91.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 1,854 | 642,960 | 549,493 | 29,055 | 64,412 |
| Python | 983 | 23,503 | 18,308 | 1,728 | 3,467 |
| JSON | 21 | 16,852 | 16,844 | 0 | 8 |
| TSX | 31 | 6,473 | 5,665 | 173 | 635 |
| YAML | 28 | 4,833 | 4,037 | 404 | 392 |
| TOML | 127 | 4,361 | 3,681 | 208 | 472 |
| SVG | 17 | 1,131 | 1,024 | 71 | 36 |
| TypeScript | 18 | 756 | 561 | 104 | 91 |
| Shell | 14 | 463 | 256 | 140 | 67 |
| CSS | 2 | 252 | 222 | 0 | 30 |
| HTML | 2 | 81 | 81 | 0 | 0 |
| Dockerfile | 1 | 38 | 26 | 7 | 5 |

Top language (Rust 91.6%). Generated at 2026-08-26T18:36:12.464646257+00:00. Canonical report: https://octocounts.com/github/astral-sh/ruff

## Report FAQ

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

astral-sh/ruff has 1,108,411 total lines, including 600,198 code lines, 381,557 comment lines, and 126,656 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 007157d47915, 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 007157d47915 on 2026-08-26T18:36:12.464646257+00:00.

## Similar repository reports

- [brightwave-inc/tidebreak](https://octocounts.com/github/brightwave-inc/tidebreak) — Rust, 601,204 code lines
- [1jehuang/jcode](https://octocounts.com/github/1jehuang/jcode) — Rust, 617,746 code lines
- [tikv/tikv](https://octocounts.com/github/tikv/tikv) — Rust, 623,206 code lines
- [bifrost-proxy/bifrost](https://octocounts.com/github/bifrost-proxy/bifrost) — Rust, 623,283 code lines
- [Ansh-699/agave](https://octocounts.com/github/Ansh-699/agave) — Rust, 565,687 code lines
- [GreptimeTeam/greptimedb](https://octocounts.com/github/GreptimeTeam/greptimedb) — Rust, 637,097 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)
- [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)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
