style: apply ruff formatting and lint fixes

This commit is contained in:
2026-05-02 12:04:14 +03:00
parent 184b95969c
commit 1dbedf0f52
4 changed files with 12 additions and 4 deletions

View File

@@ -4,11 +4,11 @@ when:
steps: steps:
- name: lint - name: lint
image: python:3.11 image: python:3.13
commands: commands:
- pip install uv - pip install uv
- uv sync --no-dev --only-group lints - uv sync --no-dev --only-group lints
- uv run black --check .
- uv run ruff check . - uv run ruff check .
- uv run ruff format --check .
- uv run isort --check-only . - uv run isort --check-only .

View File

@@ -4,7 +4,7 @@ when:
steps: steps:
- name: test - name: test
image: python:3.11 image: python:3.13
commands: commands:
- pip install uv - pip install uv
- uv sync --no-dev --group tests - uv sync --no-dev --group tests

View File

@@ -4,7 +4,7 @@ when:
steps: steps:
- name: type - name: type
image: python:3.11 image: python:3.13
commands: commands:
- pip install uv - pip install uv
- uv sync --no-dev --only-group types - uv sync --no-dev --only-group types

View File

@@ -62,6 +62,14 @@ xfail_strict = true
strict = true strict = true
plugins = ["pydantic.mypy"] 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] [tool.isort]
profile = "black" profile = "black"
filter_files = true filter_files = true