Recent submissions

Comment · 1 year ago
Comment · 1 year ago
Quit simple. To use pre-commit you would need python installed, and to be honest, not everyone is going to install python just to install pre-commit right? Meanwhile GetHooky being a CLI tool just requires you to install the respective binary for your system, and done.

Also, pre-commit's approach of creating a YAML file and then running your pre-commit hook is a bit overengineering, in my opinion. I mean, what if I just want to run pytest? A whole YAML file sounds a bit unnecessary work to me. But with GetHooky, it's simple. Just use the add command and then the install command, and your job is done. Nothing much complicated.

Hope this helped you clarify what exactly GetHooky is, its not a package that requires you to install a language for its runtime, its a CLI tool, just download the binary and done.

Comment · 1 year ago
maybe git should fix this. Or maybe I could fix this internally in githooky maybe? I don't know, but I could give it a try, at least. How would you like the approach to be? Any ideas, I'll take it.
Comment · 1 year ago
I can totally understand the point you're making there. I used to use VScode too few years ago, but now I use vim most of the time. So majority of the time I'm in my terminal so if the hook fails for me, it gives me the error, and I have zero problems with that. So I get what you mean there, but I mean, for those who live in their terminals git hooks kind of make sense, I mean after all, we see the error cause its the terminal after all.

So yeah it just boils down to the fact how you would use git, in vscode, hooks aren't great, cause its not going to display the error, but if you use the terminal, even in vscode, you'll see the error getting displayed on the terminal.

Comment · 1 year ago
well you don't really have to you can just install the binary from the release page in github, but I mean, then mv it to the required location in order for it to work globally. So I thought why not just create a bash script for that.
Comment · 1 year ago
yup its vitepress. I kind of got the idea of it from Husky. They also use vitepress too, so I thought why not?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton