Make pyright run in standard mode#4425
Merged
aabmass merged 15 commits intoopen-telemetry:mainfrom Mar 12, 2025
Merged
Conversation
Contributor
Author
pierceroberts
commented
Feb 13, 2025
pierceroberts
commented
Feb 13, 2025
emdneto
reviewed
Feb 14, 2025
emdneto
reviewed
Feb 14, 2025
emdneto
reviewed
Feb 14, 2025
Member
emdneto
left a comment
There was a problem hiding this comment.
You need to get CLA signed to get things merged, so please take a look at the CLA error
Kludex
suggested changes
Feb 19, 2025
pierceroberts
commented
Feb 20, 2025
7720c96 to
6230592
Compare
emdneto
reviewed
Mar 5, 2025
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
emdneto
reviewed
Mar 8, 2025
Member
There was a problem hiding this comment.
The thing is, in strict mode, there are a lot of fixes to do even for opentelemetry-api (124 errors, 0 warnings, 0 informations) which is already fine according to mypy setup. so I'm thinking on the following plan:
- Keep mypy in CI for a while
- Add pyright in standard mode, with a strict list (this PR)
- Fix typing issues from the exclude list in follow-up small PRs
- When the fix list for at least
opentelemetry-apiandopentelemetry-sdk/resourcesis done, we remove mypy from CI.
I did some changes to help this get in.
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
aabmass
approved these changes
Mar 10, 2025
Member
aabmass
left a comment
There was a problem hiding this comment.
Sounds a like a plan, thanks!
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Kludex
approved these changes
Mar 11, 2025
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Member
|
@pierceroberts can you create a tracking issue with the typing issues we are ignoring here so we can fix them later?
|
aabmass
reviewed
Mar 11, 2025
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Partially address:
#4404
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Contrib Repo Change?
Checklist: