Skip to content

Commit 77e531d

Browse files
committed
ci: bump mypy, ruff versions
1 parent 462529d commit 77e531d

7 files changed

Lines changed: 19 additions & 19 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jobs:
6868
# Keep in sync ruff version with .pre-commit-config.yaml
6969
- name: Run Ruff Linter
7070
run: |
71-
uvx ruff@0.14.5 check .
72-
uvx ruff@0.14.5 format --check .
71+
uvx ruff@0.15.12 check .
72+
uvx ruff@0.15.12 format --check .
7373
7474
type_check:
7575
name: Type Check with Mypy
@@ -94,4 +94,4 @@ jobs:
9494
# Keep in sync mypy version with .pre-commit-config.yaml
9595
- name: Run Mypy Type Checker
9696
run: |
97-
uvx mypy@1.18.2
97+
uvx mypy@2.0.0

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# Ruff for linting and formatting
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.14.5 # Keep in sync with GitHub Actions workflow
4+
rev: v0.15.12 # Keep in sync with GitHub Actions workflow
55
hooks:
66
# Run the linter
77
- id: ruff
@@ -11,7 +11,7 @@ repos:
1111

1212
# mypy for type checking
1313
- repo: https://github.com/pre-commit/mirrors-mypy
14-
rev: v1.18.2 # Keep in sync with GitHub Actions workflow
14+
rev: v2.0.0 # Keep in sync with GitHub Actions workflow
1515
hooks:
1616
- id: mypy
1717
args: [--config-file=pyproject.toml]

‎CONTRIBUTING.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ The documentation style used in the project is **ReStructuredText**. Please, if
3131
Before creating your pull request, when you have made all your commits, you need to run this:
3232
```shell
3333
# Run linters (maybe you will have to fix some issues)
34-
uvx ruff@0.14.5 check language_tool_python tests
34+
uvx ruff@0.15.12 check language_tool_python tests
3535

3636
# Format code
37-
uvx ruff@0.14.5 format language_tool_python tests
37+
uvx ruff@0.15.12 format language_tool_python tests
3838

3939
# Check types
40-
uvx mypy@1.18.2
40+
uvx mypy@2.0.0
4141

4242
# Tests
4343
pytest

‎Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ default:
55
@exit 1
66

77
check:
8-
uvx ruff@0.14.5 check language_tool_python tests
9-
uvx ruff@0.14.5 format --check language_tool_python tests
10-
uvx mypy@1.18.2
8+
uvx ruff@0.15.12 check language_tool_python tests
9+
uvx ruff@0.15.12 format --check language_tool_python tests
10+
uvx mypy@2.0.0
1111

1212
test:
1313
pytest

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ Main exceptions in `language_tool_python.exceptions`:
365365
uv sync --group tests --group docs --group types
366366

367367
# Lint / format / types
368-
uvx ruff@0.14.5 check .
369-
uvx ruff@0.14.5 format .
370-
uvx mypy@1.18.2
368+
uvx ruff@0.15.12 check .
369+
uvx ruff@0.15.12 format .
370+
uvx mypy@2.0.0
371371

372372
# Tests
373373
pytest

‎make.bat‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ echo Usage: make.bat [check^|test^|doc^|publish]
99
exit /b 1
1010

1111
:check
12-
uvx ruff@0.14.5 check language_tool_python tests
12+
uvx ruff@0.15.12 check language_tool_python tests
1313
if errorlevel 1 exit /b %errorlevel%
1414

15-
uvx ruff@0.14.5 format --check language_tool_python tests
15+
uvx ruff@0.15.12 format --check language_tool_python tests
1616
if errorlevel 1 exit /b %errorlevel%
1717

18-
uvx mypy@1.18.2
18+
uvx mypy@2.0.0
1919
exit /b %errorlevel%
2020

2121
:test

‎tests/test_cli.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88

99

10-
@pytest.mark.parametrize( # type: ignore[misc]
10+
@pytest.mark.parametrize( # type: ignore[untyped-decorator]
1111
"argv, stdin, should_succeed",
1212
[
1313
(["-l", "en-US", "-"], "This is okay.\n", True),
@@ -62,7 +62,7 @@ def test_cli_exit_codes(
6262
assert code != 0
6363

6464

65-
@pytest.fixture(scope="module") # type: ignore[misc]
65+
@pytest.fixture(scope="module") # type: ignore[untyped-decorator]
6666
def remote_server() -> Generator[Tuple[str, int], None, None]:
6767
"""
6868
Fixture that provides a remote LanguageTool server for testing.

0 commit comments

Comments
 (0)