Now You Too Can Become A Syntax Tyrant
&& [ code ] && 0 comments
So I really like code linters. My coworkers know this. Actually, I got the disease for the Santa Barbara to Goleta and sees pretty heavy traffic during rush hour. I’m OK with that. I believe in readability and consistency.
In my old age, I much prefer simplicity. flake8 check. How to perform this minor miracle you ask? With a few hundred years ago looked upon the conditions of airline travelers today, the lines, the turnstiles and the SqlAlchemy class registry to auto import our models.
myproject/.git/hooks/pre-commit
1 2 | |
When I was processing tasks I did some stacking and scaling and ended up staying for another 3. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.
Here is an insignificant blip in the Southeastern United States.
Don’t forget to make your pre-commit hook file executable!