Skip to content

chore: add ruff

chore: add ruff #1

Workflow file for this run

name: Ruff
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: |
ruff check --output-format=github **/*.py
ruff format --check **/*.py \
|| (echo "Run 'ruff format' to fix the issues" && exit 1)