{"id":13443337,"url":"https://github.com/emacs-lsp/lsp-pyright","last_synced_at":"2025-03-20T16:30:58.887Z","repository":{"id":37901123,"uuid":"281669835","full_name":"emacs-lsp/lsp-pyright","owner":"emacs-lsp","description":"lsp-mode :heart: pyright ","archived":false,"fork":false,"pushed_at":"2024-04-16T06:11:01.000Z","size":1105,"stargazers_count":274,"open_issues_count":27,"forks_count":23,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-05-01T11:36:37.497Z","etag":null,"topics":["elisp","emacs","emacs-lisp","lsp","python"],"latest_commit_sha":null,"homepage":"https://emacs-lsp.github.io/lsp-pyright","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emacs-lsp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-22T12:21:42.000Z","updated_at":"2024-05-03T03:49:26.330Z","dependencies_parsed_at":"2023-01-26T08:01:24.187Z","dependency_job_id":"398ff878-d6b7-4596-92c2-5035363c8596","html_url":"https://github.com/emacs-lsp/lsp-pyright","commit_stats":{"total_commits":74,"total_committers":13,"mean_commits":"5.6923076923076925","dds":"0.32432432432432434","last_synced_commit":"b891a5071fcb4371d7d817069cbb04f5bd160468"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-lsp%2Flsp-pyright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-lsp%2Flsp-pyright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-lsp%2Flsp-pyright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-lsp%2Flsp-pyright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emacs-lsp","download_url":"https://codeload.github.com/emacs-lsp/lsp-pyright/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244649792,"owners_count":20487492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elisp","emacs","emacs-lisp","lsp","python"],"created_at":"2024-07-31T03:01:59.352Z","updated_at":"2025-03-20T16:30:58.878Z","avatar_url":"https://github.com/emacs-lsp.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"# lsp-pyright\n\n[![Build Status](https://github.com/emacs-lsp/lsp-pyright/workflows/CI/badge.svg?branch=master)](https://github.com/emacs-lsp/lsp-pyright/actions)\n[![License](http://img.shields.io/:License-GPL3-blue.svg)](License)\n[![MELPA](https://melpa.org/packages/lsp-pyright-badge.svg)](https://melpa.org/#/lsp-pyright)\n[![Join the chat at https://gitter.im/emacs-lsp/lsp-mode](https://badges.gitter.im/emacs-lsp/lsp-mode.svg)](https://gitter.im/emacs-lsp/lsp-mode?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n\u003c!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc --\u003e\n\n## Table of Contents\n\n- [Quickstart](#quickstart)\n- [Configuration](#configuration)\n- [Usage notes](#usage-notes)\n\n\u003c!-- markdown-toc end --\u003e\n\nlsp-mode client leveraging [pyright](https://github.com/microsoft/pyright) and [basedpyright](https://github.com/DetachHead/basedpyright) language server.\n\n## Quickstart\n\n```emacs-lisp\n(use-package lsp-pyright\n  :ensure t\n  :custom (lsp-pyright-langserver-command \"pyright\") ;; or basedpyright\n  :hook (python-mode . (lambda ()\n                          (require 'lsp-pyright)\n                          (lsp))))  ; or lsp-deferred\n```\n\n## Configuration\n\n`lsp-pyright` supports the following configuration. Each configuration is described in detail in\n[Pyright Settings](https://github.com/microsoft/pyright/blob/master/docs/settings.md).\n\n- `basedpyright.` / `pyright.disableLanguageServices` via `lsp-pyright-disable-language-services`\n- `basedpyright.` / `pyright.disableOrganizeImports` via `lsp-pyright-disable-organize-imports`\n- `basedpyright.` / `pyright.disableTaggedHints` via `lsp-pyright-disable-tagged-hints`\n- `basedpyright.` / `python.typeCheckingMode` via `lsp-pyright-type-checking-mode`\n- `basedpyright.analysis.inlayHints.variableTypes` via `lsp-pyright-basedpyright-inlay-hints-variable-types`\n- `basedpyright.analysis.inlayHints.callArgumentNames` via `lsp-pyright-basedpyright-inlay-hints-call-argument-names`\n- `basedpyright.analysis.inlayHints.functionReturnTypes` via `lsp-pyright-basedpyright-inlay-hints-function-return-types`\n- `basedpyright.analysis.inlayHints.genericTypes` via `lsp-pyright-basedpyright-inlay-hints-generic-types`\n- `python.analysis.autoImportCompletions` via `lsp-pyright-auto-import-completions`\n- `python.analysis.diagnosticMode` via `lsp-pyright-diagnostic-mode`\n- `python.analysis.logLevel` via `lsp-pyright-log-level`\n- `python.analysis.autoSearchPaths` via `lsp-pyright-auto-search-paths`\n- `python.analysis.extraPaths` via `lsp-pyright-extra-paths`\n- `python.pythonPath` via `lsp-pyright-locate-python`\n- `python.venvPath` via `lsp-pyright-venv-path`\n\nProjects can be further configured using `pyrightconfig.json` file. For further details please see\n[Pyright Configuration](https://github.com/microsoft/pyright/blob/master/docs/configuration.md).\n\n## Choosing the correct version of Python\n\n`lsp-pyright` will try its best to select the correct version of the\npython executable to use. It will do so by iteratively executing\ndifferent search functions, going from most precise to most\ngeneral.\n\nThe list and order of the list can be modified by customizing\n`lsp-pyright-python-search-functions`. By default the order is:\n - Look for a parent directory with a virtual-environment named\n   `.venv` or `venv` via `lsp-pyright--locate-python-venv`.\n - Look for a python executable on your PATH via\n   `lsp-pyright--locate-python-python`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femacs-lsp%2Flsp-pyright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femacs-lsp%2Flsp-pyright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femacs-lsp%2Flsp-pyright/lists"}