Skip to content

Expand tildes when resolving Ruff server configuration file#11283

Merged
charliermarsh merged 1 commit intomainfrom
charlie/expand
May 4, 2024
Merged

Expand tildes when resolving Ruff server configuration file#11283
charliermarsh merged 1 commit intomainfrom
charlie/expand

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh commented May 4, 2024

Summary

Users can now include tildes and environment variables in the provided path, just like with --config.

Closes #11277.

Test Plan

Set the configuration path to "ruff.configuration": "~/x.toml"; verified that the server attempted to read from /Users/crmarsh/x.toml.

Screenshot 2024-05-04 at 1 31 43 PM

@charliermarsh charliermarsh added bug Something isn't working server Related to the LSP server labels May 4, 2024
@charliermarsh charliermarsh requested a review from snowsignal May 4, 2024 17:32
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 4, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@charliermarsh charliermarsh merged commit 9d45987 into main May 4, 2024
@charliermarsh charliermarsh deleted the charlie/expand branch May 4, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working server Related to the LSP server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ruff server still doesn't check E30* errors

2 participants