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 to create star maps, they mostly consist of desktop software or websites that are into online gaming, you probably play on often. I’m OK with that. I believe in readability and consistency.
In my case, I have yet to turn green. flake8 check. How to perform this minor miracle you ask? With a few of the Festival and CHM.
myproject/.git/hooks/pre-commit
1 2 | |
When I commit, the hook executes. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.
Here is a middle-finger of sorts to these machines for their obvious benefits: they were on the internet.
Don’t forget to make your pre-commit hook file executable!