lint pipe fixes
Some checks failed
ci/woodpecker/push/tests Pipeline failed
ci/woodpecker/push/lints Pipeline was successful

This commit is contained in:
2026-04-19 19:09:26 +03:00
parent 9f2b5b0772
commit bac008b920
4 changed files with 33 additions and 24 deletions

View File

@@ -1,13 +1,19 @@
when:
- event: [push, pull_request]
branch: dev
branch: main
steps:
- name: lint
image: python:3.11
commands:
- pip install uv
- uv sync --dev
- uv sync --only-group lints
- uv run black --check .
- uv run ruff check .
- uv run isort --check-only .
- name: types
image: python:3.11
commands:
- pip install uv
- uv sync --only-group types
- uv run mypy .

View File

@@ -1,19 +0,0 @@
when:
- event: push
branch: main
- event: pull_request
branch: main
steps:
- name: install
image: python:3.11-slim
commands:
- pip install --upgrade pip
- pip install pytest pytest-cov coverage
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: test
image: python:3.11-slim
commands:
- pytest --cov=src --cov-report=term --cov-report=xml tests/

12
.woodpecker/tests.yaml Normal file
View File

@@ -0,0 +1,12 @@
when:
- event: [push, pull_request]
branch: main
steps:
- name: tests
image: python:3.11
commands:
- pip install uv
- uv sync --group tests
- uv run pytest

View File

@@ -11,10 +11,20 @@ dependencies = [
[dependency-groups]
dev = [
"isort>=8.0.1",
"mypy>=1.20.1",
{include-group = "lints"},
{include-group = "tests"},
{include-group = "types"},
"pre-commit>=4.5.1",
]
tests = [
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"ruff>=0.15.11",
]
lints = [
"black>=23.7.0",
"ruff>=0.15.11",
"isort>=8.0.1",
]
types = [
"mypy>=1.20.1",
]