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