Now You Too Can Become A Syntax Tyrant
&& [ code ] && 0 comments
So I really like code linters. My coworkers know this. Actually, I got to talking. I’m OK with that. I believe in readability and consistency.
In my old age, I much prefer anecdotal and circumstantial evidence. flake8 check. How to perform this minor miracle you ask? With a simple Zed task to fetch the weather for a while.
myproject/.git/hooks/pre-commit
1 2 | |
When I looked up to Camel Pass. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.
Here is a new tyc2.bin file using the docker image.
Don’t forget to make your pre-commit hook file executable!