Skip to content

Merge pull request #24 from tskit-dev/prek1 #2

Merge pull request #24 from tskit-dev/prek1

Merge pull request #24 from tskit-dev/prek1 #2

Workflow file for this run

# Requires
# - pyproject.toml with a group called "lint" which must include prek
# - A prek.toml file
name: Lint workflow for tskit-dev
jobs:
prek:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4.2.2
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
python-version: 3.11
version: "0.8.15"
- name: Install Python dependencies
run: uv sync --locked --only-group lint
- name: Run prek
run: uv run --only-group lint prek -c prek.toml run --all-files