-
-
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 ! |
This comment has been minimized.
This comment has been minimized.
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
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10507 +/- ##
=======================================
Coverage 95.85% 95.85%
=======================================
Files 177 177
Lines 19284 19293 +9
=======================================
+ Hits 18484 18493 +9
Misses 800 800
π New features to boost your workflow:
|
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