default_stages: [commit, push] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.1.0 hooks: - id: check-added-large-files args: [--maxkb=10000] - id: check-json - id: check-merge-conflict - id: check-yaml - id: end-of-file-fixer types: [python] - id: fix-encoding-pragma args: [--remove] - id: flake8 args: [--ignore=E501] - id: forbid-new-submodules - id: no-commit-to-branch - id: pretty-format-json args: [--autofix] - id: trailing-whitespace types: [python] - repo: https://github.com/pryorda/dockerfilelint-precommit-hooks rev: v0.1.0 hooks: - id: dockerfilelint - repo: local hooks: - id: ocp-indent name: ocp-indent language: system verbose: true entry: .hooks/ocp-indent.sh