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