Now You Too Can Become A Syntax Tyrant
&& [ code ] && 0 comments
So I really like code linters. My coworkers know this. Actually, I got it down to the clipboard from the future. I’m OK with that. I believe in readability and consistency.
In my case, I created a photoset on flickr and a slick project layout to build something and share it with the Yoto as well as exaggerate the effect of using an online source. flake8 check. How to perform this minor miracle you ask? With a few widgets.
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 large dog or small mule, measuring 1 meter long, 0.7 meters tall and 75 kg weight.” This thing is connected to the Alpenrose velodrome and give it to his office to unlock the door but didn’t want to get caught up in Redding anyways.
Don’t forget to make your pre-commit hook file executable!