Check analyzers action allows warnings from Pyright
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7
- Forks
- 2
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 3
Description
Bug Report
The check_analyzers.yml workflow runs Pyright static analysis, and when the tool emits warnings, the checks pass.
Repro or Code Sample
Example
https://github.com/ni/ni-apis-python/actions/runs/17439900411/job/49519891808?pr=100#step:13:27
/home/runner/work/ni-apis-python/ni-apis-python/packages/ni.measurementlink.sessionmanagement.v1.client/src/ni/measurementlink/sessionmanagement/v1/client/_reservation.py:278:43 - warning: TypeVar "TMultiplexerSession" appears only once in generic function signature
Use "object" instead (reportInvalidTypeVarUse)
Expected Behavior
We expect the checks to fail on Pyright warnings.
Current Behavior
Currently the checks pass on Pyright warnings.
Possible Solution
Update the Pyright configuration for each project
- use
strictmode if the new errors are fixable - or promote the severity of selected rules from "warning" to "error"
Context
I noticed these Alerts when reviewing PRs
Your Environment
ni-apis-pythonversion: main- Python version: 3.11
Contributor guide
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 with the check_analyzers.yml workflow and the Pyright configuration for each project; compare the referenced action run with the current settings. Confirm that the reported Pyright warning causes the checks to fail, using strict mode or promoted rule severity where appropriate, and verify the analyzer workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ci-cd, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100