Skip to content

style: add pyright #2637

style: add pyright

style: add pyright #2637

Workflow file for this run

name: lint
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
mypy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- uses: liskin/gh-problem-matcher-wrap@v3
with:
action: add
linters: mypy
- run: pip install -e '.[dev]'
- name: mypy
run: mypy --show-column-numbers transmission_rpc
pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: pip install pre-commit
- uses: trim21/actions/pre-commit@master
sphinx:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- run: pip install -e '.[dev]'
- run: sphinx-build -W docs/ dist/
pyright:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: astral-sh/setup-uv@v5
- run: uv pip install -r pyproject.toml --extra dev --system
- uses: jakebailey/pyright-action@v2