From eb8a272219e960b70fd7c61180bc5bfd19d88c68 Mon Sep 17 00:00:00 2001 From: Nawaz Hussain Khazielakha Date: Thu, 24 Oct 2024 17:15:59 -0700 Subject: [PATCH] update .pre-commit config - remove lint checks since we run at PRs - remove lint checks since we run verify job - switch shellcheck to latest - update .pre-commit with the latest versions of the binaries --- .pre-commit-config.yaml | 55 +++++++---------------------------------- 1 file changed, 9 insertions(+), 46 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 671e29792f2..56d7fefd234 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,61 +1,24 @@ repos: - repo: https://github.com/gitleaks/gitleaks - rev: v8.16.3 + rev: v8.21.1 hooks: - id: gitleaks -- repo: https://github.com/jumanjihouse/pre-commit-hooks - rev: 3.0.0 +- repo: https://github.com/koalaman/shellcheck-precommit + rev: v0.10.0 hooks: - id: shellcheck - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace + - id: detect-private-key - repo: https://github.com/pylint-dev/pylint - rev: v3.0.2 + rev: v3.3.1 hooks: - id: pylint exclude: ^hack/boilerplate/boilerplate.py$ -- repo: local - hooks: - - id: make-verify-boilerplate - name: Verify boilerplate - description: Runs `make verify-boilerplate` to check for boilerplate headers. - entry: make verify-boilerplate - language: system -- repo: local - hooks: - - id: make-verify-modules - name: Verify modules - description: Runs `make verify-modules` to verify go.sum go.mod are the latest. - entry: make verify-modules - language: system -- repo: local - hooks: - - id: make-verify-shellcheck - name: Verify shellcheck - description: Runs `make verify-shellcheck` to verify shell files are passing lint. - entry: make verify-shellcheck - language: system -- repo: local - hooks: - - id: make-verify-tiltfile - name: Verify tiltfile - description: Runs `make verify-tiltfile` to verify Tiltfile format. - entry: make verify-tiltfile - language: system -- repo: local - hooks: - - id: make-codespell - name: Verify codespell - description: Runs `make verify-codespell` to verify codespell format. - entry: make verify-codespell - language: system -- repo: local +- repo: https://github.com/jumanjihouse/pre-commit-hooks + rev: 3.0.0 hooks: - - id: make-lint - name: Lint codebase - description: Runs `make lint` to check for linter errors. - entry: make lint - language: system + - id: forbid-binary