Files
blog.pyaqa.ru/.woodpecker/python_lints.yaml
Sergey Vanyushkin 7cd0d8c229
Some checks failed
ci/woodpecker/push/python_lints Pipeline failed
ci/woodpecker/push/test_pipeline Pipeline failed
pipeline updated
2026-04-19 14:07:31 +03:00

34 lines
694 B
YAML

when:
- event: push
branch: main
- event: pull_request
branch: main
steps:
- name: install-deps
image: python:3.11-slim
commands:
- pip install --upgrade pip
- pip install flake8 black isort # можно добавить pylint, mypy и др.
- name: flake8
image: python:3.11-slim
commands:
- flake8 . --max-line-length=120 --exclude=.venv,venv,__pycache__
- name: black
image: python:3.11-slim
commands:
- black --check --diff .
- name: isort
image: python:3.11-slim
commands:
- isort --check-only --diff .
- name: mypy
image: python:3.11-slim
commands:
- pip install mypy
- mypy .