X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=.pre-commit-config.yaml;h=4738b01c6e2c4dc27b4eb158eb73e3e85d89575a;hb=6af1c0c3eda77ae8113ba6760ad5a86313f43da8;hp=7141eeda74e402f6da0129153a6e272935b32609;hpb=4d1aaad578d2bc185b281964c95980267300ecb2;p=releng%2Fglobal-jjb.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7141eeda..4738b01c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,27 +1,37 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.1.0 + rev: v4.2.0 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.6.2 hooks: - id: prettier + stages: [commit] - repo: https://github.com/jorisroovers/gitlint - rev: v0.13.1 + rev: v0.17.0 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.5 + rev: 2.1.6 hooks: - id: shellcheck - repo: https://github.com/btford/write-good - rev: v1.0.4 + rev: v1.0.8 hooks: - id: write-good exclude: > @@ -33,31 +43,31 @@ repos: )$ - repo: https://github.com/btford/write-good - rev: v1.0.4 + rev: v1.0.8 hooks: # Files listed below break the following write-good rules: # - 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"] files: docs/jjb/lf-ci-jobs.rst - repo: https://github.com/btford/write-good - rev: v1.0.4 + rev: v1.0.8 hooks: # 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"]