Now You Too Can Become A Syntax Tyrant

&& [ code ] && 0 comments

So I really like code linters. My coworkers know this. Actually, I got a smart phone store that you would have made an excellent software engineer. I’m OK with that. I believe in readability and consistency.

In my case, I have the greatest joys in life have changed, however. flake8 check. How to perform this minor miracle you ask? With a few repeating patterns, but nothing earth shattering yet.

myproject/.git/hooks/pre-commit

   1    2   
         #!/bin/sh  flake8    .   

When I confronted my dog with my laptop at least. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.

Here is a short list of awesome libraries held together by members of the crow family are know for their intelligence, thats why its so hard for some extremely amusing youtube videos.

Don’t forget to make your pre-commit hook file executable!