RobertCraigie / RobertCraigie/pyright-python
Using additional_dependencies does not work
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 277
- Forks
- 31
- Avg merge
- 4h 22m
- Merged PRs (30d)
- 3
Description
As opposed to other similar pre-commit hooks such mypy, ruff or pylint, pyright one seems to not be able to recognize additional_dependencies and thus produce false positive reports about such reportMissingImports.
How can we configure it to avoid this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the pre-commit hook behavior with additional_dependencies and confirm when reportMissingImports produces false positives. Trace how the Python wrapper passes hook configuration to pyright; done means dependencies supplied through additional_dependencies are recognized and the false-positive reports no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100