ci: use ruff
for linting (closes #16)
#9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |