Skip to content

willbakst is linting the package #2081

willbakst is linting the package

willbakst is linting the package #2081

Workflow file for this run

name: lint
run-name: ${{ github.actor }} is linting the package
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
jobs:
lints:
name: Ruff, Pyright, and Codespell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@v2
with:
exclude_file: "docs/tutorials/evals/evaluating_web_search_agent.ipynb,docs/tutorials/agents/web_search_agent.ipynb,docs/tutorials/more_advanced/knowledge_graph.ipynb"
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh
- name: Set Up Python Environment
run: uv python install 3.11
- name: Restore uv cache
uses: actions/cache@v4
with:
path: /tmp/.uv-cache
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
uv-${{ runner.os }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Run Ruff
run: uv run ruff check .
- name: Run Pyright
run: uv run pyright mirascope tests examples
- name: Minimize uv cache
run: uv cache prune --ci