Skip to content

Format and lint Python code with ruff #190

Format and lint Python code with ruff

Format and lint Python code with ruff #190

Workflow file for this run

name: lint_python
on: [pull_request, push, workflow_dispatch]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: pip install --upgrade pip wheel setuptools
- run: pip install codespell mypy pytest ruff
- run: codespell --ignore-words-list="commend"
- run: ruff format --check
- run: ruff check --output-format=github --select=ALL
- run: pip install -r requirements.txt || pip install --editable . || true
- run: mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive .
- run: pytest . || pytest --doctest-modules . || true