Skip to content

fix: make some args kw only #19

fix: make some args kw only

fix: make some args kw only #19

name: Lint, Format, and Type Check
on:
push:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/lint-and-type-check.yml'
pull_request:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/lint-and-type-check.yml'
workflow_dispatch:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v3
- name: Install the project
run: uv sync --python 3.12
- name: Run mypy
run: uv run mypy .
- name: Run ruff lint
run: uv run ruff check .
- name: Run ruff format
run: uv run ruff format --check .