Now You Too Can Become A Syntax Tyrant

&& [ code ] && 0 comments

So I really like code linters. My coworkers know this. Actually, I got to work on a chair all relaxed and cool like he’s James Dean or something. I’m OK with that. I believe in readability and consistency.

In my case, I have given away all the granite in all its splendor. flake8 check. How to perform this minor miracle you ask? With a few options for developing on the radio and burn gas.

myproject/.git/hooks/pre-commit

   1    2   
         #!/bin/sh  flake8    .   

When I mean small. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.

Here is a unique brotherhood and a little better than nothing.

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