X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=.pre-commit-config.yaml;h=13f206b2d62c1c744cea4b17acb6217eb631a171;hb=c8362308bbb3cdff371cab923ea54edb0f1c2d9a;hp=f08ce2534cef9e31611b75b8ea53ac2f1f0d7488;hpb=319725b8996613e6e80653e89f1f6bca83e4861b;p=releng%2Fbuilder.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f08ce2534..13f206b2d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,9 +4,6 @@ repos: rev: v2.5.0 hooks: - id: check-json - - id: flake8 - args: ['--max-line-length=88'] - exclude: docs/* - id: trailing-whitespace - repo: https://github.com/jorisroovers/gitlint @@ -24,6 +21,29 @@ repos: 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.23.0 hooks: