-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix invalid-envvar-default
to flag os.environ.get
#10094
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: harupy <[email protected]>
Signed-off-by: harupy <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #10094 +/- ##
=======================================
Coverage 95.80% 95.80%
=======================================
Files 174 174
Lines 18962 18962
=======================================
Hits 18166 18166
Misses 796 796
|
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 4388b82 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a functional test for this? I think the documentation workflow shows this might be working as expected.
@@ -30,7 +30,7 @@ | |||
THREADING_THREAD = "threading.Thread" | |||
COPY_COPY = "copy.copy" | |||
OS_ENVIRON = "os._Environ" | |||
ENV_GETTERS = ("os.getenv",) | |||
ENV_GETTERS = ("os.getenv", "os.environ.get") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this would fix the issue but it actually doesn't.
@harupy You asked for review but haven't changed any code. What would you like me to review? |
Type of Changes
Description
Refs #10092
Closes #10092