From 1dbedf0f524f633f935bbac2e10f4f2819866672 Mon Sep 17 00:00:00 2001 From: Sergey Vanyushkin Date: Sat, 2 May 2026 12:04:14 +0300 Subject: [PATCH] style: apply ruff formatting and lint fixes --- .woodpecker/lint.yaml | 4 ++-- .woodpecker/test.yaml | 2 +- .woodpecker/type.yaml | 2 +- pyproject.toml | 8 ++++++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.woodpecker/lint.yaml b/.woodpecker/lint.yaml index b63f994..a99960e 100644 --- a/.woodpecker/lint.yaml +++ b/.woodpecker/lint.yaml @@ -4,11 +4,11 @@ when: steps: - name: lint - image: python:3.11 + image: python:3.13 commands: - pip install uv - uv sync --no-dev --only-group lints - - uv run black --check . - uv run ruff check . + - uv run ruff format --check . - uv run isort --check-only . diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 7936fae..71557b6 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -4,7 +4,7 @@ when: steps: - name: test - image: python:3.11 + image: python:3.13 commands: - pip install uv - uv sync --no-dev --group tests diff --git a/.woodpecker/type.yaml b/.woodpecker/type.yaml index fd1ad87..c230690 100644 --- a/.woodpecker/type.yaml +++ b/.woodpecker/type.yaml @@ -4,7 +4,7 @@ when: steps: - name: type - image: python:3.11 + image: python:3.13 commands: - pip install uv - uv sync --no-dev --only-group types diff --git a/pyproject.toml b/pyproject.toml index f658d2f..edf9ece 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,14 @@ xfail_strict = true strict = true plugins = ["pydantic.mypy"] +[tool.ruff] +target-version = "py313" +line-length = 100 + +[tool.ruff.lint] +select = ["E", "F", "I", "W", "B", "C4", "SIM"] +ignore = ["E501"] + [tool.isort] profile = "black" filter_files = true