Skip to content

V2

V2 #279

Workflow file for this run

---
name: "Linting"
on:
push:
branches: ["master", "main"]
pull_request:
jobs:
pre-commit:
name: "Pre-commit"
strategy:
matrix:
python-version: [3.11]
runs-on: "ubuntu-latest"
steps:
- name: "⤵️ Check out code from GitHub"
uses: "actions/checkout@v4"
- name: "🐍 Set up Python ${{ matrix.python-version }}"
uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "⚙️ Install Poetry"
uses: "abatilo/[email protected]"
- name: "⚙️ Install dependencies"
run: "poetry install"
- name: "🚀 Run pre-commit on all files"
run: |
poetry run pre-commit install
poetry run pre-commit run --all-files --show-diff-on-failure --color=always