Add flake8 #1
Workflow file for this run
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: | |
black-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 Black | |
run: pip install black flake8 | |
- name: Check Python code formatting with Black | |
run: black --check backend/ | |
- name: Check Python code style with Flake8 | |
run: flake8 backend/ |