-
Notifications
You must be signed in to change notification settings - Fork 6
Clean up typing for proxy config #539
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
Conversation
WalkthroughThe changes add structured proxy configuration via two public TypedDicts: ProxyConfig (async) and ProxyConfigSync (sync). Type-checking imports for AsyncBaseTransport, BaseTransport, and ProxyTypes are introduced, and Mapping is added to imports. The async request path now builds mounts with httpx.AsyncHTTPTransport and passes a typed ProxyConfig to httpx.AsyncClient. The sync path builds mounts with httpx.HTTPTransport and passes a typed ProxyConfigSync to httpx.Client. Type ignores are removed, and minor control-flow/type updates align the public API and internal usage. Pre-merge checks (2 passed, 1 warning)❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
infrahub_sdk/client.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (1)infrahub_sdk/client.py (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
🔇 Additional comments (9)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying infrahub-sdk-python with
|
| Latest commit: |
9222be5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://75c4b0bd.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://pog-proxy-config-typing.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## develop #539 +/- ##
===========================================
- Coverage 75.94% 75.86% -0.09%
===========================================
Files 100 100
Lines 9329 8874 -455
Branches 1832 1737 -95
===========================================
- Hits 7085 6732 -353
+ Misses 1754 1670 -84
+ Partials 490 472 -18
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
New Features
Refactor