# microsoft/pyright SLOC report

> microsoft/pyright: 485,679 code lines at commit 373ab6471097, counted with tokei-14.0.0 on 2026-10-23. Saved result 098160c9d690396bca4899c35f22f52e1844671720bf8ad8a2ab277eeaae84e5.

microsoft/pyright has 485,679 source lines of code out of 567,934 total lines across 5,836 files, counted from the main ref at commit 373ab6471097 by the OctoCounts tokei engine on 2026-10-23. 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 373ab6471097, 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.5% of all lines, comments represent 4.1%, and the repository averages 83 code lines per file. Python accounts for 66.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 5,324 | 362,861 | 323,289 | 5,344 | 34,228 |
| TypeScript | 255 | 172,639 | 132,781 | 17,902 | 21,956 |
| JSON | 31 | 20,192 | 20,192 | 0 | 0 |
| YAML | 2 | 10,802 | 8,459 | 1 | 2,342 |
| TOML | 204 | 794 | 663 | 77 | 54 |
| JavaScript | 9 | 339 | 284 | 37 | 18 |
| NuGet Config | 2 | 11 | 11 | 0 | 0 |
| Markdown | 6 | 251 | 0 | 167 | 84 |
| Plain Text | 3 | 45 | 0 | 37 | 8 |

Top language (Python 66.6%). Generated at 2026-10-23T07:39:18.581149978Z. Canonical report: https://octocounts.com/github/microsoft/pyright/commit/373ab64710970ab3f9e7f15b56be89d6f542d572?reportId=098160c9d690396bca4899c35f22f52e1844671720bf8ad8a2ab277eeaae84e5&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/microsoft/pyright/commit/373ab64710970ab3f9e7f15b56be89d6f542d572?reportId=098160c9d690396bca4899c35f22f52e1844671720bf8ad8a2ab277eeaae84e5&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 microsoft/pyright have?

microsoft/pyright has 567,934 total lines, including 485,679 code lines, 23,565 comment lines, and 58,690 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 373ab6471097, 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 main at commit 373ab6471097 on 2026-10-23T07:39:18.581149978Z.

## Similar repository reports

- [microsoft/agent-governance-toolkit](https://octocounts.com/github/microsoft/agent-governance-toolkit) — Python, 480,127 code lines
- [DetachHead/basedpyright](https://octocounts.com/github/DetachHead/basedpyright) — Python, 471,951 code lines
- [Mai-with-u/MaiBot](https://octocounts.com/github/Mai-with-u/MaiBot) — Python, 463,501 code lines
- [sefcom/oxidizer](https://octocounts.com/github/sefcom/oxidizer) — Python, 457,905 code lines
- [numpy/numpy](https://octocounts.com/github/numpy/numpy) — Python, 454,539 code lines
- [rlaope/oh-my-hermes](https://octocounts.com/github/rlaope/oh-my-hermes) — Python, 519,288 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)
