feat: added possibility to use proxies in LanguageTool requests, updated uv.lock#141
Merged
mdevolde merged 1 commit intojxmorris12:masterfrom Nov 22, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds proxy support for LanguageTool remote server requests and updates the uv.lock file to reflect test dependency removals from a previous PR. The proxy functionality allows users to route their LanguageTool API requests through HTTP/HTTPS proxies, with validation ensuring proxies are only used with remote servers.
- Added optional
proxiesparameter toLanguageTool.__init__with validation - Implemented
proxiesproperty with getter/setter for runtime configuration - Integrated proxy support into
_query_servermethod for all server requests
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| uv.lock | Removed test dependencies (pytest-rerunfailures, pytest-runner, pytest-xdist, execnet) that were deleted in a previous PR |
| language_tool_python/server.py | Added proxy support parameter, attribute, property accessor/mutator, validation logic, and integration with requests library |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: added possibility to use proxies in LanguageTool requests, updated uv.lock
Why the pull request was made
To resolve the issue mentioned in this issue: #70
Summary of changes
Screenshots (if appropriate):
Not applicable.
How has this been tested?
Tested with a local proxy (dedicated to these tests). Also applied local tests.
Resources
Not applicable.
Types of changes
Checklist