Skip to content

update pyright to 1.1.384 #1279

update pyright to 1.1.384

update pyright to 1.1.384 #1279

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request_target:
types: [labeled]
jobs:
lint_and_typecheck:
if: ${{ github.event_name == 'push' || github.event.label.name == 'run-ci' }}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: check changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
sources:
- src/**
- tests/**
- scripts/**
- .github/workflows/ci.yml
- name: Install Rye
if: steps.changes.outputs.sources == 'true'
uses: eifinger/setup-rye@v3
with:
enable-cache: true
cache-prefix: "refiners-rye-cache"
- name: add Rye shims dir to PATH
if: steps.changes.outputs.sources == 'true'
run: echo "$RYE_HOME/shims" >> $GITHUB_PATH
- name: use uv
if: steps.changes.outputs.sources == 'true'
run: rye config --set-bool behavior.use-uv=true
- name: pin python
if: steps.changes.outputs.sources == 'true'
run: rye pin 3.10
- name: rye sync
if: steps.changes.outputs.sources == 'true'
run: rye sync --all-features
- name: rye fmt
if: steps.changes.outputs.sources == 'true'
run: rye fmt --check
- name: rye lint
if: steps.changes.outputs.sources == 'true'
run: rye lint
- name: typecheck
if: steps.changes.outputs.sources == 'true'
run: rye run pyright