Skip to content

ci: use ruff for linting (closes #16) #9

ci: use ruff for linting (closes #16)

ci: use ruff for linting (closes #16) #9

Workflow file for this run

# Performs linting on the project
name: Lint
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: ✨ Checkout repository
uses: actions/checkout@v3
- name: 📖 Bootstrap Poetry
run: pipx install poetry
- name: 🐍 Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: poetry
- name: ⬇️ Install dependencies
run: poetry install
- name: 🧩 Run type checks
run: poetry run mypy
- name: 🚦 Run pre-commit
uses: pre-commit/[email protected]
- name: 📑 Apply changes (via pre-commit-ci-lite)
if: always()
uses: pre-commit-ci/[email protected]