RobertCraigie / pyright-python

Python command line wrapper for pyright, a static type checker
https://pypi.org/project/pyright/
MIT License
166 stars 22 forks source link

Pyright doesn't show all errors at once. Only a small portion. Pyright error limit #174

Closed Day0Dreamer closed 6 days ago

Day0Dreamer commented 1 year ago

Pyright keeps on is giving more and more errors after previous ones have been dealt with. This is unusual, as with other tools like mypy flake8 or similar, you are presented with the whole listing of errors.

Basically, it feels as if there is some kind of limit. Most likely "just show 2-3 .py files and omit the rest".

Here is the flow:

Sidenote: --watch flag doesn't change the number of errors, or the files that are displayed.

Config:

[tool.pyright]
include = ["src"]
ignore = ["tests/**/*", "src/ui.py", "src/sendmetoc4d.py"]
pythonVersion = '3.10'
pythonPlatform = 'All'
useLibraryCodeForTypes = true
venvPath = "C:\\Users\\DayDreamer\\AppData\\Local\\hatch\\env\\virtual\\packer\\Xm-Cv8OZ"
venv = "packer"
RobertCraigie commented 6 days ago

Sorry for the delayed response here, I don't think I've personally seen this behaviour before for what it's worth but the type checking output isn't implemented in this repository, if you're still seeing this behaviour please ask for help in the pyright repo https://github.com/microsoft/pyright