This repo contains a pre-commit hook for yasi. Usage In your .pre-commit-config.yaml: - repo: https://github.com/arenadotio/pre-commit-yasi rev: master # or pick a commit sha I guess hooks: - id: yasi files: # insert your regex here