Skip to content

🔧 Implement Ruff as required check instead of Black creating a commit re-formatting code #86

🔧 Implement Ruff as required check instead of Black creating a commit re-formatting code

🔧 Implement Ruff as required check instead of Black creating a commit re-formatting code #86

Workflow file for this run

name: Ensure formatted code
on:
pull_request:
types: [ opened, edited, reopened, synchronize, ready_for_review ]
workflow_dispatch:
jobs:
format_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting for Python code
run: |
pip install ruff
ruff format --check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint Python code
run: |
pip install ruff
ruff check