Skip to content

fix(server): add missing username to auth as premium user#198

Merged
mdevolde merged 1 commit into
jxmorris12:masterfrom
mdevolde:fix/premium_key
Jun 20, 2026
Merged

fix(server): add missing username to auth as premium user#198
mdevolde merged 1 commit into
jxmorris12:masterfrom
mdevolde:fix/premium_key

Conversation

@mdevolde

Copy link
Copy Markdown
Collaborator

fix(server): add missing username to auth as premium user

Why the pull request was made

To patch the "premium" functionality, and allow users to authenticate as premium users to LT public API.

Summary of changes

  • Add a new premium_username attribute to LanguageTool.
  • Set this attribute in the check request params.
  • Adapt existing documentation.

Screenshots (if appropriate):

Not applicable.

How has this been tested?

Applied local tests. Need a premium key to test the functionality.

Resources

https://languagetool.org/http-api/

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (changes to documentation only)
  • Refactor / code style update (non-breaking change that improves code structure or readability)
  • Tests / CI improvement (adding or updating tests or CI configuration only)
  • Other (please describe):

Checklist

  • Followed the project's contributing guidelines.
  • Updated any relevant tests.
  • Updated any relevant documentation.
  • Added comments to your code where necessary.
  • Formatted your code, run the linters, checked types and tests.

@mdevolde mdevolde self-assigned this Jun 20, 2026
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.46%. Comparing base (ea04de4) to head (16b1335).

Files with missing lines Patch % Lines
src/language_tool_python/server.py 75.00% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
- Coverage   80.51%   80.46%   -0.05%     
==========================================
  Files          13       13              
  Lines        1735     1746      +11     
==========================================
+ Hits         1397     1405       +8     
- Misses        338      341       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mdevolde mdevolde merged commit 27493eb into jxmorris12:master Jun 20, 2026
13 checks passed
@mdevolde mdevolde deleted the fix/premium_key branch June 20, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants