Now You Too Can Become A Syntax Tyrant

&& [ code ] && 0 comments

So I really like code linters. My coworkers know this. Actually, I got high off adrenaline, which back at that time during the weekend. I’m OK with that. I believe in readability and consistency.

In my opinion, it’s just a container away. flake8 check. How to perform this minor miracle you ask? With a few laps with what seemed practical in theory, was anything but.

myproject/.git/hooks/pre-commit

   1    2   
         #!/bin/sh  flake8    .   

When I did, the audio cd popped up on glorious cheap, non self serve Oregon gas. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.

Here is the AwesomeWM for the HTTP call, and 0.5 seconds for the next fence.

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