←back to thread

365 points tanelpoder | 1 comments | | HN request time: 0.2s | source
Show context
nikisweeting ◴[] No.44978455[source]
As long as it does `ruff check --fix; ruff format` internally and not just one or the other, then I'm happy. Tired of running 2 commands every time.
replies(2): >>44978473 #>>44978476 #
zahlman ◴[] No.44978476[source]
FWIW, you can pretty easily script this sort of thing. In Bash it can even be a function added to your ~/.bashrc .
replies(2): >>44978483 #>>44978587 #
1. nikisweeting ◴[] No.44978483[source]
Of course we already have it automated in pre-commit checks, I'm just mildly annoyed that it's two different commands in the first place (though I'm sure there is some good historical reason). The distinction/ordering between them isn't really clear as a user, I just want "find and fix everything you can, error if you cant autofix" every time.