style: apply ruff formatting and lint fixes
This commit is contained in:
@@ -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 .
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user