Files
gh-christianlouis-inboxconv…/.github/workflows/lint.yml
T
2026-02-06 22:07:25 +00:00

42 lines
832 B
YAML

name: Code Quality
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black ruff mypy
pip install -r backend/requirements.txt
- name: Check code formatting with Black
run: |
black --check backend/
- name: Lint with Ruff
run: |
ruff check backend/
- name: Type check with mypy
run: |
mypy backend/app --ignore-missing-imports
continue-on-error: true