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

ruff formatter: Fix bug running non-stdin version #239

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

dbarnett
Copy link
Contributor

Forgot to pass the "-" placeholder for stdin. Apparently if you pass --stdin-filename ruff assumes stdin, but if there's no filename it can get confused and format everything in-place instead of formatting the editor buffer.

Fixes #223 (properly).

Forgot to pass the "-" placeholder for stdin. Apparently if you pass
--stdin-filename ruff assumes stdin, but if there's no filename it can
get confused and format everything in-place instead of formatting the
editor buffer.
autoload/codefmt/ruff.vim Show resolved Hide resolved
vroom/ruff.vroom Show resolved Hide resolved
@snu5mumr1k snu5mumr1k merged commit 805e894 into google:master Aug 28, 2024
4 checks passed
@dbarnett dbarnett deleted the ruff branch August 28, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ruff as formatter for Python
2 participants