Skip to content

Ruff doesn't use the locally configured settings #48715

@cos4ni2s

Description

@cos4ni2s

Reproduction steps

  1. Start Zed
  2. Configure Ruff under lsp.ruff.settings
  3. Open a Python file
  4. Press Ctrl-Shift-I
  5. See the result

Current vs. Expected behavior

Current behavior: Formatting isn't customized
Expected behavior: Formatting is customized

Zed version and system specs

Zed: v0.222.4+stable (Zed)
OS: Linux Wayland cachyos unknown
Memory: 7.1 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 25.3.5-arch1.2

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json
"lsp": {
	"ruff": {
		"settings": {
			"indent-width": 4,
			"line-length": 128,
			"format": {
				"docstring-code-format": true,
				"docstring-code-line-length": "dynamic",
				"exclude": [
					
				],
				"indent-style": "tab",
				"line-ending": "native",
				"preview": false,
				"quote-style": "double",
				"skip-magic-trailing-comma": true
			},
			"lint": {
				"ignore": [
					"E301",
					"E302",
					"E303",
					"E305",
					"E306"
				]
			}
		}
	}
},

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:needs triagetriage is not complete: no `area:*` label, or no `priority:*`/`frequency:*` for Bugs/Crashes

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions