Skip to content

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.
@snu5mumr1k snu5mumr1k merged commit 805e894 into google:master Aug 28, 2024
@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

2 participants