lint pipe fixes
This commit is contained in:
@@ -1,13 +1,19 @@
|
|||||||
when:
|
when:
|
||||||
- event: [push, pull_request]
|
- event: [push, pull_request]
|
||||||
branch: dev
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: python:3.11
|
image: python:3.11
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv sync --dev
|
- uv sync --only-group lints
|
||||||
|
- uv run black --check .
|
||||||
- uv run ruff check .
|
- uv run ruff check .
|
||||||
- uv run isort --check-only .
|
- uv run isort --check-only .
|
||||||
|
- name: types
|
||||||
|
image: python:3.11
|
||||||
|
commands:
|
||||||
|
- pip install uv
|
||||||
|
- uv sync --only-group types
|
||||||
- uv run mypy .
|
- 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]
|
[dependency-groups]
|
||||||
dev = [
|
dev = [
|
||||||
"isort>=8.0.1",
|
{include-group = "lints"},
|
||||||
"mypy>=1.20.1",
|
{include-group = "tests"},
|
||||||
|
{include-group = "types"},
|
||||||
"pre-commit>=4.5.1",
|
"pre-commit>=4.5.1",
|
||||||
|
]
|
||||||
|
tests = [
|
||||||
"pytest>=9.0.3",
|
"pytest>=9.0.3",
|
||||||
"pytest-asyncio>=1.3.0",
|
"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