←back to thread

365 points tanelpoder | 1 comments | | HN request time: 0s | 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 #
IshKebab ◴[] No.44978587[source]
Just so you know, when people say "I hate this paper cut", they aren't really asking how they can put in extra work to get around it. Obviously hey can add some alias to ~/.bashrc... on every computer he uses. The complaint is that he has to do that in the first place. It's still annoying.
replies(1): >>44978767 #
zahlman ◴[] No.44978767[source]
I prefer having things this way, because it respects the fact that I may have a different idea from the next person about how the pieces should be put together.
replies(3): >>44978787 #>>44978944 #>>44987063 #
1. nikisweeting ◴[] No.44978787[source]
no one is proposing removing the sub-commands, only adding a shortcut that calls both