lint pipe fixes
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 32 additions and 23 deletions
@@ -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 .
-19
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
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