Skip to content

ruff style

ruff style #69

Workflow file for this run

name: "CodeQL"
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- "**.py"
- "**.toml"
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
paths:
- "**.py"
- "**.toml"
schedule:
- cron: '29 19 * * 5'
jobs:
ruff-lint:
name: Ruff Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
cache: pip
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: ruff check --output-format=github
ruff-format:
name: Ruff Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
cache: pip
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: ruff format --check