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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ ignore = [

[tool.mypy]
files = ["language_tool_python", "tests"]
disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_expr = true
disallow_any_generics = true
disallow_any_unimported = true
Expand All @@ -162,6 +164,7 @@ no_implicit_reexport = true
pretty = true
show_error_codes = true
strict_equality = true
strict_equality_for_none = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
Expand Down
6 changes: 4 additions & 2 deletions tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def test_install_oldest_supported_version() -> None:
"en-US",
language_tool_download_version="4.0",
) as tool:
assert tool is not None
assert tool.language_tool_download_version == "4.0"
except LanguageToolError:
pytest.fail("Failed to download or initialize the oldest supported version.")

Expand All @@ -592,7 +592,9 @@ def test_install_snapshot_version() -> None:
(datetime.now(timezone.utc) - timedelta(days=3)).strftime("%Y%m%d")
),
) as tool:
assert tool is not None
assert tool.language_tool_download_version == (
datetime.now(timezone.utc) - timedelta(days=3)
).strftime("%Y%m%d")
except LanguageToolError:
pytest.skip(
(
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

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

Loading