Skip to content

Linting with Ruff

Linting with Ruff #6

Workflow file for this run

name: Lint
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
- name: Ruff Format Check
run: ruff format --check .
- name: Ruff Lint Check
run: ruff check --output-format=github .
# Still run if format check fails
if: always()