Keeping python code clean with pre-commit hooks: black, flake8 and isort

Automate code formatting tasks with the pre-commit framework

Rohit Gupta
Nov 20, 2019 · 5 min read
Python code snippet.
Python code snippet photo by Chris Ried on Unsplash

At a fast-paced startup, where many commits are pushed frequently across various projects and multiple merge requests are created daily, reviewing them and maintaining code quality standards like code compliance with PEP8 all at the same time…