Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify pyrightconfig.json , add missing comments and extra strict settings in all pyright configs #9714

Merged
merged 6 commits into from
Feb 12, 2023

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Feb 11, 2023

First commit simply simplifies pyrightconfig.json, adds missing comments to all 3 files and moves a TODO in pyrightconfig.stricter.json so that both base and stricter configs are identical below the // Extra strict settings comment.

Second commit turns on settings that are not on by default even with "typeCheckingMode": "strict". Or excplicitely disables them if should be.
"reportShadowedImports": "none" has an added advantage of stopping Pylance from highlighting entire stdlib stub files:
image

Fixed a small reportUninitializedInstanceVariable issue in tests.

@Avasam Avasam changed the title Simplify configs, add missing comments and extra strict settings Simplify pyright configs, add missing comments and extra strict settings Feb 12, 2023
Incidentally also test generic params inferred from __init__ call
pyrightconfig.json Outdated Show resolved Hide resolved
pyrightconfig.testcases.json Outdated Show resolved Hide resolved
pyrightconfig.testcases.json Outdated Show resolved Hide resolved
test_cases/stdlib/builtins/check_dict.py Outdated Show resolved Hide resolved
@Avasam Avasam changed the title Simplify pyright configs, add missing comments and extra strict settings Simplify pyrightconfig.json , add missing comments and extra strict settings in all pyright configs Feb 12, 2023
@Avasam Avasam requested a review from AlexWaygood February 12, 2023 17:04
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@AlexWaygood AlexWaygood merged commit 965b310 into python:main Feb 12, 2023
@Avasam Avasam deleted the update-pyrightconfig branch February 12, 2023 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants