Answer: Zed uses Ruff for formatting and linting Python code, running it as an LSP server via the `ruff server` subcommand. You configure formatting under Languages > Python in Settings or in your settings file, using `code_actions_on_format` for code actions and a `formatter` (e.g., the ruff language server or an external command like Black). Status: Overdue (check was due 2026-11-20T13:43:02Z and has not succeeded) Entry: tool/zed/settings/python-formatting-linting Revision: 1 Digest: sha256:4543a48a65aa739b (changes whenever the content changes) Timeline: Created: 2026-11-13T04:04:33Z Last changed: 2026-11-13T04:04:33Z Last verified: 2026-11-19T13:43:02Z Next check: 2026-11-20T13:43:02Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of tool | Ruff | [1] | 2026-11-19 LSP subcommand | ruff server | [1] | 2026-11-19 format phase 1 setting | code_actions_on_format | [1] | 2026-11-19 import sorting action | source.organizeImports.ruff | [1] | 2026-11-19 formatter language server name | ruff | [1] | 2026-11-19 disable format on save | off | [1] | 2026-11-19 Ruff config file | ruff.toml | [1] | 2026-11-19 Sources: [1] Zed Industries. "zed.dev/docs/languages/python.md". https://zed.dev/docs/languages/python.md Role: primary. Accessed: 2026-11-19T13:43:02Z Quote: "Zed uses [Ruff](https://github.com/astral-sh/ruff) for formatting and linting Python code." (Supports: tool) Quote: "it runs Ruff as an LSP server using the `ruff server` subcommand." (Supports: LSP subcommand) Quote: "first, code actions on format (`code_actions_on_format`) are executed, followed by the configured formatter." (Supports: format phase 1 setting) Quote: ""source.organizeImports.ruff": true" (Supports: import sorting action) Quote: ""name": "ruff"" (Supports: formatter language server name) Quote: ""format_on_save": "off"" (Supports: disable format on save) Quote: "configuration files (`ruff.toml`) when used in Zed." (Supports: Ruff config file) Snapshot SHA-256: 5f026774856ddd43c0fb9b5129a8d7e82ebe973d01d150438cd762bbb3fcce58 (captured 2026-11-13T04:04:32Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:04:33Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:43:02Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:43:02Z Last attempt: 2026-11-19T13:43:02Z Notes and limitations: Extracted automatically from a single official source (section "Code Formatting & Linting"). Human-readable page: https://zed.dev/docs/languages/python.html Related: https://latestn.com/tool/zed/settings/remote-development-port-forwarding How do I configure port forwarding in Zed remote development? https://latestn.com/tool/zed/settings/rust-inlay-hints-config How do I change the inlay hint settings for rust-analyzer in Zed? https://latestn.com/tool/zed/settings/rust-target-directory How do I set the rust-analyzer target directory in Zed? https://latestn.com/tool/zed/settings/prevent-idle-sleep How do I keep my system awake while Zed's agent is running? https://latestn.com/tool/zed/settings/proto-formatting How do I enable formatting for Proto files in Zed? https://latestn.com/tool/zed/settings/proto-lsp-configuration How do I configure which language server Zed uses for Proto files? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T04:04:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/zed/settings/python-formatting-linting/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/zed/settings/python-formatting-linting POST: https://latestn.com/dispute/tool/zed/settings/python-formatting-linting with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/zed/settings/python-formatting-linting?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up code formatting and linting for Python in Zed? Revision 1, last verified 2026-11-19T13:43:02Z. https://latestn.com/tool/zed/settings/python-formatting-linting (accessed 2026-11-21T09:50:47Z). @misc{LatestN_tool_zed_settings_python_formatting_linting_r1, title = {How do I set up code formatting and linting for Python in Zed?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/zed/settings/python-formatting-linting}}, note = {Revision 1; digest sha256:4543a48a65aa739b; last verified 2026-11-19T13:43:02Z; accessed 2026-11-21T09:50:47Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/zed/settings/python-formatting-linting