Skip to content

Add prettier pre-commit hook #81

Add prettier pre-commit hook

Add prettier pre-commit hook #81

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip
- name: Install hatch
run: pipx install hatch
- name: Run linter
run: hatch fmt --check
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- env: "latest"
python: "3.12"
- env: "oldest"
python: "3.8"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install hatch
run: pipx install hatch
- name: Run tests
run: hatch -e ${{ matrix.env }} run tests