Skip to content

Commit e6b6b99

Browse files
authored
Merge pull request #139 from mdevolde/bump_version
bump to 3.0.0
2 parents 07831ee + 3852945 commit e6b6b99

File tree

5 files changed

+43
-4
lines changed

5 files changed

+43
-4
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# language_tool_python Changelog
2+
3+
## 3.0.0 (2025-11-20)
4+
5+
### What's New:
6+
- Corrected a bug when the default locale is POSIX default (C).
7+
- Corrected a bug when closing `LanguageTool` instances (deadlocks).
8+
- Corrected a bug when comparing LT versions (e.g., '5.8' vs '5.10').
9+
- Added new possible values in LT config (`trustXForwardForHeader`, `suggestionsEnabled` and lang keys).
10+
- Added a warning if you forget to explicitly close a `LanguageTool` instance.
11+
- Added online documentation for the package.
12+
- Added logging (and logs) in the package.
13+
- Added raising `exceptions.TimeoutError` in `download_lt.http_get`.
14+
- Added `packaging` as a dependency.
15+
- Moved exception classes to a separate `exceptions` module (no more importable from `utils`).
16+
- Edited raised exceptions in some methods/functions:
17+
- from `AssertionError` to `ValueError` in `config_file.LanguageToolConfig.__init__`
18+
- from `AssertionError` to `exceptions.PathError` in `download_lt.download_lt`
19+
- from `AssertionError` to `ValueError` in `download_lt.download_lt`
20+
- from `AssertionError` to `ValueError` in `server.LanguageTool.__init__`
21+
- from `AssertionError` to `ValueError` in `utils.kill_process_force`
22+
- Edited some camelCase attributes/methods to snake_case:
23+
- `server.LanguageTool.motherTongue` to `server.LanguageTool.mother_tongue`
24+
- `server.LanguageTool.newSpellings` to `server.LanguageTool.new_spellings`
25+
- `match.Match.ruleId` to `match.Match.rule_id`
26+
- `match.Match.offsetInContext` to `match.Match.offset_in_context`
27+
- `match.Match.errorLength` to `match.Match.error_length`
28+
- `match.Match.ruleIssueType` to `match.Match.rule_issue_type`
29+
- `match.Match.matchedText` to `match.Match.matched_text`
30+
- Edited types of some params:
31+
- `directory_to_extract_to` in `dowload_lt.unzip_file` from `str` to `Path`
32+
- `directory` in `download_lt.download_zip` from `str` to `Path`
33+
- `download_folder` in `utils.find_existing_language_tool_downloads` from `str` to `Path`
34+
- Edited return types of some methods/functions:
35+
- from `str` to `Path` in `utils.get_language_tool_download_path`
36+
- from `List[str]` to `List[Path]` in `utils.find_existing_language_tool_downloads`
37+
- from `str` to `Path` in `utils.get_language_tool_directory`
38+
- from `Tuple[str, str]` to `Tuple[Path, Path]` in `utils.get_jar_info`

coverage-badge.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
project = "language_tool_python"
1010
copyright = "2025, jxmorris12"
1111
author = "jxmorris12"
12-
release = "2.9.5" # Keep in sync with pyproject.toml
12+
release = "3.0.0" # Keep in sync with pyproject.toml
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "language_tool_python"
3-
version = "2.9.5" # Keep in sync with docs/source/conf.py
3+
version = "3.0.0" # Keep in sync with docs/source/conf.py
44
requires-python = ">=3.9"
55
description = "Checks grammar using LanguageTool."
66
readme = { file = "README.md", content-type = "text/markdown" }
@@ -37,6 +37,7 @@ dependencies = [
3737
[project.urls]
3838
repository = "https://github.com/jxmorris12/language_tool_python.git"
3939
documentation = "https://language-tool-python.readthedocs.io/en/latest/"
40+
changelog = "https://github.com/jxmorris12/language_tool_python/blob/master/CHANGELOG.md"
4041

4142
[dependency-groups]
4243
tests = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)