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

Add support for ruff format for Python files #233

Closed
offbyone opened this issue Oct 29, 2023 · 2 comments · Fixed by #236
Closed

Add support for ruff format for Python files #233

offbyone opened this issue Oct 29, 2023 · 2 comments · Fixed by #236

Comments

@offbyone
Copy link
Contributor

The ruff linter has gained formatter support: https://github.com/astral-sh/ruff#usage

It's in beta, but it's mostly black-compatible, but much faster. I'd love it if Python formatting could use the "right" formatter depending on if black or ruff are installed.

I'm happy to submit a PR for this support.

@raxod502
Copy link
Member

Sure, that sounds fine to me. Let's keep black as the default for now, but add support for ruff so that users can set it to be used for Python if they prefer.

offbyone added a commit to offbyone/ruff that referenced this issue Nov 4, 2023
Add editor integration docs for `ruff format` in Emacs by way of the Apheleia formatter library

Depends on:  radian-software/apheleia#233
@offbyone
Copy link
Contributor Author

offbyone commented Nov 4, 2023

I have opened a PR for this; I'm happy to add any changes you see fit, but it's at least passing checks :D

raxod502 added a commit that referenced this issue Nov 4, 2023
This adds support, but does not make it the default
Fixes: #233

---------

Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
offbyone added a commit to offbyone/ruff that referenced this issue Nov 5, 2023
Add editor integration docs for `ruff format` in Emacs by way of the Apheleia formatter library

Depends on:  radian-software/apheleia#233
charliermarsh pushed a commit to astral-sh/ruff that referenced this issue Nov 5, 2023
## Summary

Add editor integration docs for `ruff format` in Emacs by way of the
Apheleia formatter library

Depends on:  radian-software/apheleia#233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants