Skip to content

Update Default Formatting #59

Update Default Formatting

Update Default Formatting #59

Workflow file for this run

name: Lint Python Code
on: [pull_request]
jobs:
format_ruff:
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.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run ruff format
run: |
ruff format --check || exit 1
lint_ruff:
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.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run ruff lint
run: |
ruff check . || exit 1 # Fail the job if ruff finds any issues