Request change to machine 1118 named Wonders of Wildlife/ American Na… #374
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 Check | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
check_formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install isort black ruff | |
- name: Check code formatting with isort | |
run: isort --profile black --check backend | |
- name: Check code formatting with black | |
run: black --check . | |
- name: Check code formatting with ruff | |
run: ruff format --check . | |