microsoft/pyright
microsoft/pyright has 494,188 source lines of code out of 577,711 total lines across 5,816 files, counted with tokei from the main ref at commit 2981f9f1ce41 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
microsoft/pyright: 494,188 code lines at commit 2981f9f1ce41, counted with tokei-15.0.0 on 2026-11-20. Saved result fa3f89e4cdba894b02e9a5b22eace8a9bc8d01dc1bd271b743444ed13724d3c5.
Source: microsoft/pyright on GitHub · counted commit 2981f9f1ce41
OctoCounts produced this report by resolving microsoft/pyright to commit 2981f9f1ce41, 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.
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 85 code lines per file. Python accounts for 65.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 5270 | 362124 | 322511 | 5404 | 34209 |
| TypeScript | 287 | 182721 | 141754 | 18226 | 22741 |
| JSON | 32 | 20357 | 20357 | 0 | 0 |
| YAML | 2 | 10859 | 8506 | 1 | 2352 |
| TOML | 201 | 791 | 659 | 77 | 55 |
| JavaScript | 10 | 424 | 364 | 40 | 20 |
| HTML | 1 | 27 | 26 | 0 | 1 |
| NuGet Config | 2 | 11 | 11 | 0 | 0 |
| Markdown | 8 | 352 | 0 | 241 | 111 |
| Plain Text | 3 | 45 | 0 | 37 | 8 |
Top language: Python 65.3%. Generated on .
Counting rules and retention
microsoft/pyright: 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.
Reproduce this report
Report FAQ
How many lines of code does microsoft/pyright have?
microsoft/pyright has 494,188 lines of code, plus 24,026 comment lines and 59,497 blank lines, for 577,711 total lines at commit 2981f9f1ce41 on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
How was the microsoft/pyright line count measured?
OctoCounts resolved the public GitHub repository to commit 2981f9f1ce41, 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 2981f9f1ce41 on November 20, 2026.
Similar repository reports
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
- saltstack/salt — Python, 503,054 code lines
- youssofal/MTPLX — Python, 483,800 code lines
- microsoft/agent-governance-toolkit — Python, 480,505 code lines
- crewAIInc/crewAI — Python, 480,114 code lines
- menglimi/astrbot_plugin_private_companion — Python, 474,162 code lines
- DetachHead/basedpyright — Python, 471,952 code lines
Play the growth animation for microsoft/pyright on this page — 494,188 code lines across 10 languages, counted by tokei.