✓ Verified 💻 Development ✓ Enhanced Data

Pyright Lsp

Python language server (Pyright) providing static type checking, code intelligence, and LSP diagnost

Rating
4.4 (197 reviews)
Downloads
3,163 downloads
Version
1.0.0

Overview

Python language server (Pyright) providing static type checking, code intelligence, and LSP diagnostics for .py and .

Complete Documentation

View Source →

Pyright LSP

Python language server integration providing static type checking and code intelligence through Microsoft's Pyright.

Capabilities

  • Type checking: Static analysis of Python types
  • Code intelligence: Autocomplete, go-to-definition, find references
  • Error detection: Real-time diagnostics for type errors and issues
  • Supported extensions: .py, .pyi

Installation Check

Before using, verify Pyright is installed:

bash
which pyright || npm install -g pyright

Alternative installation methods:

bash
pip install pyright
# or
pipx install pyright  # recommended for CLI tools

Usage

Run type checking on Python files:

bash
pyright path/to/file.py

Run on entire project:

bash
cd project-root && pyright

Configuration

Create pyrightconfig.json in project root for custom settings:

json
{
  "include": ["src"],
  "exclude": ["**/node_modules", "**/__pycache__"],
  "typeCheckingMode": "basic",
  "pythonVersion": "3.10"
}

Integration Pattern

When editing Python code:

  • Run pyright after significant changes
  • Address type errors before committing
  • Use diagnostics to improve code quality

More Information

Installation

Terminal bash

openclaw install pyright-lsp
    
Copied!

💻Code Examples

pipx install pyright # recommended for CLI tools

pipx-install-pyright--recommended-for-cli-tools.txt
## Usage

Run type checking on Python files:

cd project-root && pyright

cd-project-root--pyright.txt
## Configuration

Create `pyrightconfig.json` in project root for custom settings:
example.sh
pip install pyright
# or
pipx install pyright  # recommended for CLI tools
example.json
{
  "include": ["src"],
  "exclude": ["**/node_modules", "**/__pycache__"],
  "typeCheckingMode": "basic",
  "pythonVersion": "3.10"
}

Tags

#coding_agents-and-ides #code

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author bowen31337
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install pyright-lsp