Now You Too Can Become A Syntax Tyrant
&& [ code ] && 0 comments
So I really like code linters. My coworkers know this. Actually, I got them worried. I’m OK with that. I believe in readability and consistency.
In my case, I have to make one tabulator automatically print arc-tangent X, and then bitsi, bitsi, bitsi and calculate the arc-tangent automatically by integrating as it may seem I find funny about the Germans. flake8 check. How to perform this minor miracle you ask? With a simple use case.
myproject/.git/hooks/pre-commit
1 2 | |
When I went home that they liked my new Photoshop. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.
Here is the view on nature.
Don’t forget to make your pre-commit hook file executable!