X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=.pre-commit-config.yaml;h=f2a70310fe3db36533a75205063e0a55ee5a46bf;hb=a1cba63548032a33681714b0678d7b248ad810bc;hp=275074f2d44a88f5549359bbb11c95cef7806d6a;hpb=a054d09de44509cd925b514c8082f38e87a5da95;p=releng%2Fbuilder.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 275074f2d..f2a70310f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,30 +1,61 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.2.1 + rev: v2.5.0 hooks: - id: check-json - - id: flake8 - args: ['--max-line-length=88'] - exclude: docs/* - id: trailing-whitespace + - repo: https://github.com/prettier/prettier + rev: 2.0.5 + hooks: + - id: prettier + - repo: https://github.com/jorisroovers/gitlint - rev: v0.11.0 + rev: v0.13.1 hooks: - id: gitlint - repo: https://github.com/jumanjihouse/pre-commit-hooks - sha: 1.11.0 + rev: 2.0.2 hooks: - id: shellcheck exclude: > - (?x)^( - jjb/global-jjb/.*| - jenkins-config/.* - )$ + (?x)^( + jjb/global-jjb/.*| + jenkins-config/.* + )$ + + - repo: https://github.com/ambv/black + rev: stable + hooks: + - id: black + + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.3 + hooks: + - id: flake8 + args: ["--max-line-length=88"] + + - repo: https://github.com/pycqa/bandit + rev: 1.6.2 + hooks: + - id: bandit + # Bandit does not need to run on test code + exclude: tests/* + + - repo: https://github.com/pycqa/pydocstyle + rev: 5.0.2 + hooks: + - id: pydocstyle - repo: https://github.com/adrienverge/yamllint - rev: v1.15.0 + rev: v1.23.0 hooks: - id: yamllint + + - repo: https://github.com/btford/write-good + rev: master + hooks: + - id: write-good + exclude: docs/jenkins.rst