{"id":43316941,"url":"https://github.com/zed-extensions/pyrefly","last_synced_at":"2026-02-01T22:05:10.468Z","repository":{"id":293622415,"uuid":"984622606","full_name":"zed-extensions/pyrefly","owner":"zed-extensions","description":"Support for the Pyrefly Python LSP in Zed","archived":false,"fork":false,"pushed_at":"2025-12-15T22:23:35.000Z","size":128,"stargazers_count":41,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-19T06:49:30.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zed-extensions.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,"zenodo":null}},"created_at":"2025-05-16T08:27:15.000Z","updated_at":"2025-12-15T22:23:37.000Z","dependencies_parsed_at":"2025-05-16T09:48:05.043Z","dependency_job_id":null,"html_url":"https://github.com/zed-extensions/pyrefly","commit_stats":null,"previous_names":["zed-extensions/pyrefly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zed-extensions/pyrefly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zed-extensions%2Fpyrefly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zed-extensions%2Fpyrefly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zed-extensions%2Fpyrefly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zed-extensions%2Fpyrefly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zed-extensions","download_url":"https://codeload.github.com/zed-extensions/pyrefly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zed-extensions%2Fpyrefly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28992672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T22:01:47.507Z","status":"ssl_error","status_checked_at":"2026-02-01T21:58:37.335Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-01T22:05:09.823Z","updated_at":"2026-02-01T22:05:10.454Z","avatar_url":"https://github.com/zed-extensions.png","language":"Rust","funding_links":[],"categories":["🌐 Languages"],"sub_categories":[],"readme":"# Pyrefly Extension for Zed\n\nThis extension adds support for [Pyrefly](https://pyrefly.org/), a static type checker for Python, to Zed.\n\n## Installation\n\n### 1. Install Pyrefly\n\n`pyrefly` must be installed on your system, and available in your `$PATH` in order to use in Zed.\n\nYou can install Pyrefly globally on your system using `uv`\n\n```sh\nuv tool install pyrefly\n```\n\nSee the [Pyrefly documentation](https://pyrefly.org/en/docs/installation/) for other installation methods.\n\n### 2. Install the Extension\n\nSearch for `pyrefly` in the Zed extensions panel and click to install.\n\n## Enable\n\nDisable `pyright` (or other Python language servers) and enable `pyrefly` in your Zed settings:\n\n```jsonc\n{\n  \"languages\": {\n    \"Python\": {\n      \"language_servers\": [\"pyrefly\", \"!pyright\", \"!pylsp\"]\n    },\n  }\n}\n```\n\n## Configure\n\nConfigure under `lsp.pyrefly.settings` as required.\n\nThe \"binary\" setting is optional. If not set, `pyrefly` will be searched for in your `$PATH`.\n\n```jsonc\n{\n  \"lsp\": {\n    \"pyrefly\": {\n      \"binary\": {\n        \"path\": \".venv/bin/pyrefly\",\n        \"arguments\": [\"lsp\"]\n      },\n      \"settings\": {\n        \"python\": {\n          \"pythonPath\": \".venv/bin/python\"\n        },\n        \"pyrefly\": {\n          \"project_includes\": [\"src/**/*.py\", \"tests/**/*.py\"],\n          \"project_excludes\": [\"**/.[!/.]*\", \"**/*venv/**\"],\n          \"search_path\": [\"src\"],\n          \"ignore_errors_in_generated_code\": true\n        }\n      }\n    }\n  }\n}\n```\n\n## Configuration Options\n\nPyrefly offers a variety of configuration options, which can be specified in your Zed settings or in a `pyrefly.toml` or `pyproject.toml` file in your project:\n\n- `project_includes`: List of glob patterns for files to type check\n- `project_excludes`: List of glob patterns for files to exclude from type checking\n- `search_path`: Roots for import resolution\n- `python_version`: Python version to use for type checking\n- `python_platform`: Platform to use for type checking\n- `ignore_errors_in_generated_code`: Whether to ignore errors in generated code\n\nFor a complete list of configuration options, see the [Pyrefly documentation](https://pyrefly.org/en/docs/configuration/).\n\n## Using with Virtual Environments\n\nFor virtual environments, specify your Python interpreter in your project settings (`zed: open project settings`):\n\n```jsonc\n{\n  \"lsp\": {\n    \"pyrefly\": {\n      \"settings\": {\n        \"python\": {\n          \"pythonPath\": \".venv/bin/python\"\n        },\n        \"pyrefly\": {\n          \"python_interpreter\": \".venv/bin/python\"\n        }\n      }\n    }\n  }\n}\n```\n\n## Learn More\n\n- [Pyrefly Documentation](https://pyrefly.org/en/docs/)\n- [Python Typing Guide](https://pyrefly.org/en/docs/typing-for-python-developers/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzed-extensions%2Fpyrefly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzed-extensions%2Fpyrefly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzed-extensions%2Fpyrefly/lists"}