Skip to content

ruff

ruff #1851

Workflow file for this run

name: 🕶️ Style
on:
push:
branches:
- "**"
pull_request:
branches:
- main
jobs:
style-checks:
name: Run style checks
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- uses: actions/checkout@v4
- run: python3 -m pip install -e .[style,docs]
- run: |
python3 -m ruff check .
python3 -m ruff format --check .
name: Run ruff checks
- run: python3 -m mypy .
name: Run mypy checks
- run: |
cd docs
make html SPHINXOPTS="-W"
name: Test docs build