Skip to content

Commit ee53243

Browse files
authored
ci: bump some ci dependencies versions and fix a makefile command (jxmorris12#162)
* ci(Makefile): fix ruff check commands to target relevant files * ci: bump mypy, ruff versions * ci(test.yml): bump actions and java versions
1 parent 9d09a03 commit ee53243

7 files changed

Lines changed: 29 additions & 29 deletions

File tree

.github/workflows/test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ jobs:
2121

2222
steps:
2323
- name: Clone repository
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@v6.0.2
2525

2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v6
27+
uses: actions/setup-python@v6.2.0
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

3131
- name: Install uv
32-
uses: astral-sh/setup-uv@v7
32+
uses: astral-sh/setup-uv@v8.0.0
3333

34-
- name: Set up JDK 25
35-
uses: actions/setup-java@v5
34+
- name: Set up JDK 26
35+
uses: actions/setup-java@v5.2.0
3636
with:
3737
distribution: 'temurin'
38-
java-version: '25'
38+
java-version: '26'
3939

4040
- name: Install dependencies & build package
4141
run: |
@@ -60,26 +60,26 @@ jobs:
6060
runs-on: ubuntu-latest
6161
steps:
6262
- name: Clone repository
63-
uses: actions/checkout@v5
63+
uses: actions/checkout@v6.0.2
6464

6565
- name: Install uv
66-
uses: astral-sh/setup-uv@v7
66+
uses: astral-sh/setup-uv@v8.0.0
6767

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
7676
runs-on: ubuntu-latest
7777
steps:
7878
- name: Clone repository
79-
uses: actions/checkout@v5
79+
uses: actions/checkout@v6.0.2
8080

8181
- name: Install uv
82-
uses: astral-sh/setup-uv@v7
82+
uses: astral-sh/setup-uv@v8.0.0
8383

8484
- name: Set up venv
8585
run: uv venv .venv
@@ -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 .
34+
uvx ruff@0.15.12 check language_tool_python tests
3535

3636
# Format code
37-
uvx ruff@0.14.5 format .
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 .
9-
uvx ruff@0.14.5 format --check .
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 .
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 .
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)