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 .