-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add --no-proxy option #12011
Add --no-proxy option #12011
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Still has static check issues. |
pre-commit.ci autofix |
@uranusjr I believe I fixed the staic analysis warnings. I still cant get tests on Windows to execute...like you said..."lets go RAMDisk" |
GitHub has been having issues with those Windows jobs recently. I’ll knock on the machine to see if that fixes things. |
What happens when you provide a I ask because if you accept the command line passed proxy when one is passed it can close issues like this #9105 Also I think the name I think it would make a lot more sense to call it |
I can keep the using the proxies passed via
Great point. I can update
or we can rename the option as you suggest and keep the current behavior; however, this would appear to be somewhat duplicative of the For now I'll see about getting ca bundles back from env cariables and |
Hi @martinezlc99 - have you been able to look at this recently? This feature would be very useful to me too, so if it's something you don't have time to pick up at the moment, it's something that I may be able to help with if you would be amenable to that. |
Hi @EFord36 - wow, sorry just seeing this. I think I am done with this PR, just need to answer questions from @notatallshaw. I have the holidays off, so will attempt to get his done in the next few days. I'll let you know if I get blocked for any reason. |
FYI MacOS runners are failing due to known issue, though you do need to fix your spelling of environmental. |
MacOS runners are now working, if you rebase or merge main and fix spelling error failing pre-commit this should pass CI. |
@martinezlc99 any movement? |
@knechtionscoding - yes, I was distracted after initial PR, and unfortunately never returned. In rethinking how to respond to #12011 (comment) , I think I agree I will rethink this and submit a new PR ASAP. |
Upon reflecting on my name comment, I think it's more important to just document what it's doing, rather than bike shedding the name too much. |
PR moved to #13051 |
Fix #5378
Add
--no-proxy
option which sets thePipSession(requests.Session).trust_env
toFalse
and also setsPipSession(requests.Session).proxies
to{"http": None, "https": None}
.Setting
trust_env
toFalse
onSession
will forcerequests
to not pull proxy information from enviromental variables or system settings, which is the desired behavior for this feature.