Skip to content
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

run ruff formatter on save in sublime #293

Closed
sryza opened this issue Oct 24, 2023 · 2 comments
Closed

run ruff formatter on save in sublime #293

sryza opened this issue Oct 24, 2023 · 2 comments
Labels
question Further information is requested

Comments

@sryza
Copy link

sryza commented Oct 24, 2023

Ruff documentation includes recommendations on how run ruff to organize imports and auto-fix, inside Sublime Text. I have gotten this working successfully. But I'm having trouble doing the same Ruff's new auto-formatting. Is there a way to do this?

I originally asked this on the sublime ruff LSP package (sublimelsp/LSP-ruff#41), but they suggested that it might actually be a ruff-lsp issue.

Thanks for any help!

@charliermarsh
Copy link
Member

Ah yeah, it's currently behind a flag that requires setting an environment variable (RUFF_EXPERIMENTAL_FORMATTER=1 or similar). The VS Code extension sets it for you via a dedicated setting. But we're removing the flag today, so it should work as expected with the version that goes out in a few hours.

@dhruvmanila
Copy link
Member

Closing this as resolved. Feel free to re-open or ask any additional questions. Happy formatting :)

@dhruvmanila dhruvmanila added the question Further information is requested label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants