# microsoft/pyright SLOC report

> As of 2026-10-10 (commit 543798c27937), microsoft/pyright contains 564,704 total lines: 482,806 code, 23,464 comments, 58,434 blank, across 5,834 files in 9 languages (top: Python 66.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

microsoft/pyright has 482,806 source lines of code out of 564,704 total lines across 5,834 files, counted from the main ref at commit 543798c27937 by the OctoCounts tokei engine on 2026-10-10. 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 543798c27937, 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.2%, and the repository averages 83 code lines per file. Python accounts for 66.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 5,324 | 362,548 | 323,059 | 5,333 | 34,156 |
| TypeScript | 254 | 170,120 | 130,508 | 17,814 | 21,798 |
| JSON | 31 | 19,942 | 19,942 | 0 | 0 |
| YAML | 2 | 10,679 | 8,360 | 1 | 2,318 |
| TOML | 204 | 794 | 663 | 77 | 54 |
| JavaScript | 8 | 314 | 263 | 35 | 16 |
| NuGet Config | 2 | 11 | 11 | 0 | 0 |
| Markdown | 6 | 251 | 0 | 167 | 84 |
| Plain Text | 3 | 45 | 0 | 37 | 8 |

Top language (Python 66.9%). Generated at 2026-10-10T01:03:38.411622443+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/543798c27937b3469f869ee572be254cd809286f?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 564,704 total lines, including 482,806 code lines, 23,464 comment lines, and 58,434 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 543798c27937, 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 543798c27937 on 2026-10-10T01:03:38.411622443+00:00.

## Similar repository reports

- [microsoft/agent-governance-toolkit](https://octocounts.com/github/microsoft/agent-governance-toolkit) — Python, 478,363 code lines
- [DetachHead/basedpyright](https://octocounts.com/github/DetachHead/basedpyright) — Python, 471,951 code lines
- [lightseekorg/tokenspeed](https://octocounts.com/github/lightseekorg/tokenspeed) — Python, 495,848 code lines
- [Mai-with-u/MaiBot](https://octocounts.com/github/Mai-with-u/MaiBot) — Python, 461,099 code lines
- [sefcom/oxidizer](https://octocounts.com/github/sefcom/oxidizer) — Python, 457,905 code lines
- [numpy/numpy](https://octocounts.com/github/numpy/numpy) — Python, 448,822 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)
