Using Version Control Hooks Usage with the pre-commit git hooks framework Flake8 can be included as a hook for pre-commit. The easiest way to get started is to add this configuration to your .pre-commit-config.yaml: - repo: https://github.com/pycqa/flake8 rev: '' # pick a git hash / tag to point to hooks: - id: flake8 See the pre-commit docs for how to customize this configuration. Checked-in py