Before I commit my staged Python files, black formats my code and flake8 checks my compliance to PEP8. If everything passes, the commit is made. If not, then I the perform necessary edits and commit again. Less time is spent on code formatting so I can focus more on code logic. Code reviews are fun! They enable me to learn from other’s code while providing an opportunity to teach what I know. Howe
![Automate Python workflow using pre-commits: black and flake8](https://cdn-ak-scissors.b.st-hatena.com/image/square/5011bb133798cdca7af1932d4ae80799756547c2/height=288;version=1;width=512/https%3A%2F%2Fljvmiranda921.github.io%2Fassets%2Fheader.png)