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: Code Formatting and Linting | |
on: | |
push: | |
pull_request: | |
jobs: | |
format_and_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Black and Flake8 | |
run: | | |
python -m pip install --upgrade pip | |
pip install black flake8 | |
- name: Run Black | |
run: black -S --diff . |