-
-
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
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 |
thanks for the review Pierre-Sassoulas, i'll see if I can find a quick solution to what you mentioned, otherwise i'll close this pr and contribute to other issues as you suggested |
for more information, see https://pre-commit.ci
5f36561
to
1b65560
Compare
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