Setting up pre-commit in python project
Tools like pre-commit
help ensure all checks (type checking, linting, formatting, etc.) are run before code is committed. It integrates easily with Git and runs defined hooks automatically when git commit
is executed.