X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=.pre-commit-config.yaml;h=188d28fb90a8798c47c712c82c2ce8269f6495e7;hb=ce35c1d5681c319ca4c330892ba19aa6a020c0ee;hp=0b2f4a4c7c0e5168ed1e774ad64d2817d21a1ca3;hpb=4d088120467aa9e66aa0059691f79317e138671d;p=releng%2Fglobal-jjb.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b2f4a4c..188d28fb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,34 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.1.0 + rev: v4.0.1 hooks: - id: trailing-whitespace + - id: no-commit-to-branch + args: + - --branch=master + - --branch=main - - repo: https://github.com/prettier/pre-commit - rev: v2.1.2 + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.3.2 hooks: - id: prettier + stages: [commit] - repo: https://github.com/jorisroovers/gitlint - rev: v0.13.1 + rev: v0.15.1 hooks: - id: gitlint + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.26.3 + hooks: + - id: yamllint + - repo: https://github.com/jumanjihouse/pre-commit-hooks - rev: 2.1.4 + rev: 2.1.5 hooks: - id: shellcheck - additional_dependencies: [] - repo: https://github.com/btford/write-good rev: v1.0.4 @@ -40,10 +49,10 @@ repos: # - adverb weakens meaning # - is wordy or unneeded # - # This allows us to place an exception need to pass the check without disabling all checks for - # the whole file. - # In an ideal world write-good would give us an override for each individual instance of a - # violation but until then this gives us a close enough approach. + # This allows us to place an exception needed to pass the check without + # disabling all checks for the whole file. In an ideal world write-good + # would give us an override for each individual instance of a violation + # but until then this gives us a close enough approach. - id: write-good name: "write-good --no-adverb --no-tooWordy" args: ["--no-adverb", "--no-tooWordy"] @@ -55,10 +64,10 @@ repos: # Files listed below break the following write-good rules: # - is wordy or unneeded # - # This allows us to place an exception need to pass the check without disabling all checks for - # the whole file. - # In an ideal world write-good would give us an override for each individual instance of a - # violation but until then this gives us a close enough approach. + # This allows us to place an exception needed to pass the check without + # disabling all checks for the whole file. In an ideal world write-good + # would give us an override for each individual instance of a violation + # but until then this gives us a close enough approach. - id: write-good name: "write-good --no-tooWordy" args: ["--no-tooWordy"]