Skip to content

koxudaxi is linting the package #152

koxudaxi is linting the package

koxudaxi is linting the package #152

Workflow file for this run

name: lint
run-name: ${{ github.actor }} is linting the package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lints:
name: Ruff, Pyright, and Codespell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: "./client/pnpm-lock.yaml"
- name: Install dependencies
working-directory: ./client
run: pnpm install
- name: Build client
working-directory: ./client
run: pnpm run build:notypescript
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.4.6/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 lilypad tests examples
- name: Minimize uv cache
run: uv cache prune --ci