lint pipe fixes
This commit is contained in:
@@ -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 .
|
||||
@@ -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
12
.woodpecker/tests.yaml
Normal 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
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user