# microsoft/pyright SLOC report

> As of 2026-09-16 (commit 8854cffd75d6), microsoft/pyright contains 555,716 total lines: 474,579 code, 23,135 comments, 58,002 blank, across 5,817 files in 9 languages (top: Python 68.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

microsoft/pyright has 474,579 source lines of code out of 555,716 total lines across 5,817 files, counted from the 8854cffd75d69c2bb499e2b3c8eda8cf21ef8d4b ref at commit 8854cffd75d6 by the OctoCounts tokei engine on 2026-09-16. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving microsoft/pyright to commit 8854cffd75d6, 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 85.4% of all lines, comments represent 4.2%, and the repository averages 82 code lines per file. Python accounts for 68.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 5,324 | 362,193 | 322,743 | 5,327 | 34,123 |
| TypeScript | 238 | 161,809 | 122,918 | 17,491 | 21,400 |
| JSON | 30 | 19,624 | 19,624 | 0 | 0 |
| YAML | 2 | 10,679 | 8,360 | 1 | 2,318 |
| TOML | 204 | 791 | 660 | 78 | 53 |
| JavaScript | 8 | 314 | 263 | 35 | 16 |
| NuGet Config | 2 | 11 | 11 | 0 | 0 |
| Markdown | 6 | 250 | 0 | 166 | 84 |
| Plain Text | 3 | 45 | 0 | 37 | 8 |

Top language (Python 68.0%). Generated at 2026-09-16T05:24:04.362109501+00:00. Canonical report: https://octocounts.com/github/microsoft/pyright

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/microsoft/pyright/commit/8854cffd75d69c2bb499e2b3c8eda8cf21ef8d4b?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does microsoft/pyright have?

microsoft/pyright has 555,716 total lines, including 474,579 code lines, 23,135 comment lines, and 58,002 blank lines.

### How was the microsoft/pyright line count measured?

OctoCounts resolved the public GitHub repository to commit 8854cffd75d6, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for microsoft/pyright?

This OctoCounts report was generated from 8854cffd75d69c2bb499e2b3c8eda8cf21ef8d4b at commit 8854cffd75d6 on 2026-09-16T05:24:04.362109501+00:00.

## Similar repository reports

- [DetachHead/basedpyright](https://octocounts.com/github/DetachHead/basedpyright) — Python, 470,732 code lines
- [microsoft/agent-governance-toolkit](https://octocounts.com/github/microsoft/agent-governance-toolkit) — Python, 460,519 code lines
- [sefcom/oxidizer](https://octocounts.com/github/sefcom/oxidizer) — Python, 457,905 code lines
- [OpenBB-finance/OpenBB](https://octocounts.com/github/OpenBB-finance/OpenBB) — Python, 450,806 code lines
- [raullenchai/Rapid-MLX](https://octocounts.com/github/raullenchai/Rapid-MLX) — Python, 449,160 code lines
- [marin-community/marin](https://octocounts.com/github/marin-community/marin) — Python, 446,834 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
