Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# language_tool_python Changelog

## 3.0.0 (2025-11-20)

### What's New:
- Corrected a bug when the default locale is POSIX default (C).
- Corrected a bug when closing `LanguageTool` instances (deadlocks).
- Corrected a bug when comparing LT versions (e.g., '5.8' vs '5.10').
- Added new possible values in LT config (`trustXForwardForHeader`, `suggestionsEnabled` and lang keys).
- Added a warning if you forget to explicitly close a `LanguageTool` instance.
- Added online documentation for the package.
- Added logging (and logs) in the package.
- Added raising `exceptions.TimeoutError` in `download_lt.http_get`.
- Added `packaging` as a dependency.
- Moved exception classes to a separate `exceptions` module (no more importable from `utils`).
- Edited raised exceptions in some methods/functions:
- from `AssertionError` to `ValueError` in `config_file.LanguageToolConfig.__init__`
- from `AssertionError` to `exceptions.PathError` in `download_lt.download_lt`
- from `AssertionError` to `ValueError` in `download_lt.download_lt`
- from `AssertionError` to `ValueError` in `server.LanguageTool.__init__`
- from `AssertionError` to `ValueError` in `utils.kill_process_force`
- Edited some camelCase attributes/methods to snake_case:
- `server.LanguageTool.motherTongue` to `server.LanguageTool.mother_tongue`
- `server.LanguageTool.newSpellings` to `server.LanguageTool.new_spellings`
- `match.Match.ruleId` to `match.Match.rule_id`
- `match.Match.offsetInContext` to `match.Match.offset_in_context`
- `match.Match.errorLength` to `match.Match.error_length`
- `match.Match.ruleIssueType` to `match.Match.rule_issue_type`
- `match.Match.matchedText` to `match.Match.matched_text`
- Edited types of some params:
- `directory_to_extract_to` in `dowload_lt.unzip_file` from `str` to `Path`
- `directory` in `download_lt.download_zip` from `str` to `Path`
- `download_folder` in `utils.find_existing_language_tool_downloads` from `str` to `Path`
- Edited return types of some methods/functions:
- from `str` to `Path` in `utils.get_language_tool_download_path`
- from `List[str]` to `List[Path]` in `utils.find_existing_language_tool_downloads`
- from `str` to `Path` in `utils.get_language_tool_directory`
- from `Tuple[str, str]` to `Tuple[Path, Path]` in `utils.get_jar_info`
2 changes: 1 addition & 1 deletion coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "language_tool_python"
copyright = "2025, jxmorris12"
author = "jxmorris12"
release = "2.9.5" # Keep in sync with pyproject.toml
release = "3.0.0" # Keep in sync with pyproject.toml

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "language_tool_python"
version = "2.9.5" # Keep in sync with docs/source/conf.py
version = "3.0.0" # Keep in sync with docs/source/conf.py
requires-python = ">=3.9"
description = "Checks grammar using LanguageTool."
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down Expand Up @@ -37,6 +37,7 @@ dependencies = [
[project.urls]
repository = "https://github.com/jxmorris12/language_tool_python.git"
documentation = "https://language-tool-python.readthedocs.io/en/latest/"
changelog = "https://github.com/jxmorris12/language_tool_python/blob/master/CHANGELOG.md"

[dependency-groups]
tests = [
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.