This commit is contained in:
@@ -1,17 +1,13 @@
|
|||||||
when:
|
when:
|
||||||
- event: push
|
- event: [push, pull_request]
|
||||||
branch: main
|
branch: dev
|
||||||
- event: pull_request
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install-deps
|
- name: lint
|
||||||
image: python:3.11-slim
|
image: python:3.11
|
||||||
commands:
|
commands:
|
||||||
- pip install --upgrade pip
|
- pip install uv
|
||||||
- pip install flake8 black isort # можно добавить pylint, mypy и др.
|
- uv sync --dev
|
||||||
- flake8 . --max-line-length=120 --exclude=.venv,venv,__pycache__
|
- uv run ruff check .
|
||||||
- black --check --diff .
|
- uv run isort --check-only .
|
||||||
- isort --check-only --diff .
|
- uv run mypy .
|
||||||
- pip install mypy
|
|
||||||
- mypy .
|
|
||||||
|
|||||||
Reference in New Issue
Block a user