This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Code Quality Check | |
on: | |
pull_request: | |
paths: | |
- 'backend/**' | |
jobs: | |
python-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: pip install black flake8 mypy | |
- name: Check Python code formatting with Black | |
run: black --check --exclude backend/alembic/versions backend/ | |
- name: Check Python code style with Flake8 | |
run: flake8 --exclude=backend/alembic/versions backend/ | |
- name: Run Mypy Type Checking | |
run: mypy --ignore-missing-imports --exclude backend/alembic/versions backend/ |