diff --git a/README.md b/README.md index 4886703..c30654f 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,11 @@ instruction to your `CLAUDE.md`: ### LSP -The plugin also provides the ty LSP. It requires `uvx` to be available. +The plugin also provides the ty LSP. It requires `ty` to be installed in your project: + +```bash +uv add --dev ty +``` ## License diff --git a/plugins/astral/.claude-plugin/plugin.json b/plugins/astral/.claude-plugin/plugin.json index 78c7672..126a6a7 100644 --- a/plugins/astral/.claude-plugin/plugin.json +++ b/plugins/astral/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "astral", "description": "Skills for working with Python using Astral tools.", - "version": "0.1.0", + "version": "0.1.1", "author": { "name": "Astral", "url": "https://astral.sh" @@ -23,12 +23,15 @@ ], "lspServers": { "ty": { - "command": "uvx", - "args": ["ty@latest", "server"], + "command": "uv", + "args": ["run", "ty", "server"], "extensionToLanguage": { ".py": "python", - ".pyi": "python" - } + ".pyi": "python", + ".pyw": "python" + }, + "restartOnCrash": true, + "maxRestarts": 3 } } } diff --git a/plugins/astral/skills/ty/SKILL.md b/plugins/astral/skills/ty/SKILL.md index 8841bc4..da5a066 100644 --- a/plugins/astral/skills/ty/SKILL.md +++ b/plugins/astral/skills/ty/SKILL.md @@ -90,7 +90,7 @@ possibly-unresolved-reference = "warn" ## Language server This plugin automatically configures the ty language server for Python files -(`.py` and `.pyi`). +(`.py`, `.pyi`, and `.pyw`). ## Migrating from other tools