Skip to content

feat: releases workflow #1

feat: releases workflow

feat: releases workflow #1

Workflow file for this run

name: Pre-commit
on:
pull_request:
push:
branches:
- main
jobs:
pre-commit:
name: Pre-commit checks
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Sync packages
run: uv sync --locked --all-packages
- name: Check import sorting
run: uv run ruff check --select I .
- name: Check formatting
run: uv run ruff format --check .
- name: Type check
run: uv run basedpyright .
- name: Contract tests
run: uv run pytest tests/test_contracts.py -n auto