Skip to content

Commit

Permalink
Merge pull request #5320 from bryan-cox/5318
Browse files Browse the repository at this point in the history
Improve pre-commit UX
  • Loading branch information
k8s-ci-robot authored Dec 10, 2024
2 parents c267934 + b33199c commit 627c0fb
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,66 @@
default_stages: [pre-commit, pre-push]
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.1
hooks:
- id: gitleaks
stages: [pre-commit]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
args: ["--external-sources"]
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- repo: https://github.com/pylint-dev/pylint
rev: v3.3.1
hooks:
- id: pylint
exclude: ^hack/boilerplate/boilerplate.py$
stages: [pre-commit]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
- id: forbid-binary
stages: [pre-commit]
- repo: local
hooks:
- id: make-modules
name: Run make verify-modules
entry: make verify-modules
language: system
stages: [pre-push]
- id: make-gen
name: Run make verify-gen
entry: make verify-gen
language: system
stages: [pre-push]
- id: make-spellcheck
name: Run make verify-shellcheck
entry: make verify-shellcheck
language: system
stages: [ pre-push ]
- id: make-conversions
name: Run make verify-conversions
entry: make verify-conversions
language: system
stages: [ pre-push ]
- id: make-tiltfile
name: Run make verify-tiltfile
entry: make verify-tiltfile
language: system
stages: [ pre-push ]
- id: make-test
name: Run make test
entry: make test
language: system
stages: [pre-push]

0 comments on commit 627c0fb

Please sign in to comment.