- 
        Couldn't load subscription status. 
- Fork 1.6k
docs: revise Ruff setup instructions for Zed editor #20935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
docs: revise Ruff setup instructions for Zed editor #20935
Conversation
Updated Ruff installation instructions for Zed editor. Ruff support is now built in and does not require installing an extension anymore. zed-industries/zed#37804 Also FWI this open issue is related: zed-industries/zed#40266. But I've just tried the last code snippet from the docs on a fresh Zed install on Windows and it worked well without installing any extension.
| Thank you. There's probably more that we can remove, now that ruff is used as the default formatter and linter (it's enabled by default) as mentioned here https://zed.dev/docs/languages/python#code-formatting--linting | 
| I can have a look | 
| Zed comes with formatting, linting, and organizing imports out-of-the-box now. If you want Ruff to apply fixes when formatting: {
    "languages": {
        "Python": {
            "code_actions_on_format": { "source.fixAll.ruff": true }
        }
    }
} | 
| I'll do a commit tonight. Strange that Zed's documentation does not mention the  BTW do we want do add this in ty's documentation, or is this section https://docs.astral.sh/ty/editors/#other-editors enough?: {
  "languages": {
    "Python": {
      "language_servers": [
        // Disable basedpyright and enable Ty, and otherwise
        // use the default configuration.
        "ty",
        "!basedpyright",
        "..."
      ]
    }
  }
} | 
| 
 
 | 
| 
 Adding Zed to other editors makes sense to me, considering that we have a dedicated tab for Zed on the editor settings page. 
 Thank you! | 
| Okay tell me what you think. I put back "code_actions_on_format" since this is what has to be used at the moment apparently | 
Summary
Updated Ruff installation instructions for Zed editor.
Details
Ruff support is now built in and does not require installing an extension anymore. zed-industries/zed#37804
Also FYI this open issue is related: zed-industries/zed#40266.
But I've just tried the last code snippet from the docs on a fresh Zed install on Windows and it worked well without installing any extension.