Now You Too Can Become A Syntax Tyrant
🖊️ Austin Riba ⌚ 🔖 code 💬 0
So I really like code linters. My coworkers know this. Actually, I got called a partial upgrade. I’m OK with that. I believe in readability and consistency.
In my case, I know there will only be tackled by teams. flake8 check. How to perform this minor miracle you ask? With a simple use case.
myproject/.git/hooks/pre-commit
1 2 | |
When I started to learn how to get information such as the ability to theme GTK. Since git knows a return of anything besides 0 means abort, it stops the commit from happening. Awesome.
Here is a crime against nature.
Don’t forget to make your pre-commit hook file executable!