try https://gist.github.com/minrk/6176788 and then set-up git precommit hooks https://github.com/best-practice-and-impact/govcookiecutter/blob/main/.pre-commit-config.yaml https://pre-commit.com