-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update invalid-envvar-default
to flag os.environ.get
#10507
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
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
should I create a news fragment for this change? |
Yes, indeed :) thank you for the MR, I skimmed and i've seen nothing shocking, will review in depth later. Great first contribution ! |
Seeing the messages in the primer, we should probably not raise for |
Type of Changes
Description
This PR updates the StdLibchecker to check for
invalid-envvar-default
andinvalid-envvar-value
when callingos.environ.get
.os.environ
is a mapping object and it calls concretelybuiltins.dict
'sget
methodRelates to PR #10094
Closes #10092