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
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -49,6 +49,6 @@ jobs:
queries: security-extended,security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
with:
category: "/language:${{matrix.language}}"
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ jobs:
- os: ubuntu-26.04
python-version: "3.14"
- os: ubuntu-26.04
python-version: "3.15.0-beta.3"
python-version: "3.15.0-rc.2"
- os: macos-26
python-version: "3.14"
- os: windows-2025
python-version: "3.14"

steps:
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # 8.3.2
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # 10.0.1

- name: Set up JDK 26
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # 5.6.0
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # 5.7.0
with:
distribution: 'temurin'
java-version: '26'
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
runs-on: ubuntu-26.04
steps:
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # 8.3.2
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # 10.0.1

- name: Clone repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
Expand All @@ -97,7 +97,7 @@ jobs:
runs-on: ubuntu-26.04
steps:
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # 8.3.2
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # 10.0.1

- name: Clone repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-26.04
steps:
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # 8.3.2
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # 10.0.1

- name: Clone repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# Ruff for linting and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.22 # Keep in sync ruff version with pyproject.toml
rev: v0.16.3 # Keep in sync ruff version with pyproject.toml
hooks:
# Run the linter
- id: ruff
Expand All @@ -11,14 +11,14 @@ repos:

# mypy for type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.0 # Keep in sync mypy version with pyproject.toml
rev: v2.3.1 # Keep in sync mypy version with pyproject.toml
hooks:
- id: mypy
args: [--config-file=pyproject.toml]

# zizmor for github actions linting
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.28.0 # Keep in sync zizmor version with pyproject.toml
rev: v1.29.0 # Keep in sync zizmor version with pyproject.toml
hooks:
- id: zizmor
args: [--no-progress, --fix, --persona=auditor]
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ types = [

quality = [
# Keep in sync mypy version with .pre-commit-config.yaml
"mypy==2.3.0",
"mypy==2.3.1",
# Keep in sync ruff version with .pre-commit-config.yaml
"ruff==0.15.22",
"ruff==0.16.3",
# Keep in sync zizmor version with .pre-commit-config.yaml
"zizmor==1.28.0"
"zizmor==1.29.0"
]


Expand Down
2 changes: 1 addition & 1 deletion src/language_tool_python/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class LanguageTool:
_premium_key: str | None
"""The premium API key for the LanguageTool API."""

def __init__( # noqa: PLR0913 # Too many arguments, but they are all necessary for configuring the server. Maybe refactor in a future breaking release to use a configuration object instead of individual parameters.
def __init__( # noqa: PLR0913 PLR0917 # Too many arguments, but they are all necessary for configuring the server. Maybe refactor in a future breaking release to use a configuration object instead of individual parameters.
self,
language: str | None = None,
mother_tongue: str | None = None,
Expand Down
Loading
Loading