X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=.pre-commit-config.yaml;h=8395ce92d7155fe93a45b13edfeed7322b6da724;hb=6737d651d0b72d9f2a4a127bee152da831d0a917;hp=ca5cf7fbb4f65c9a3e61a06eb35a823f8fa143c3;hpb=bd061da41bb58c815aacaa63e8138d82df66440d;p=releng%2Fbuilder.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca5cf7fbb..8395ce92d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,62 +4,64 @@ default_language_version: node: "14.13.0" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.5.0 + rev: v4.2.0 hooks: - id: check-json - id: trailing-whitespace - - 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 + stages: [commit-msg] - repo: https://github.com/jumanjihouse/pre-commit-hooks - rev: 2.1.5 + rev: 2.1.6 hooks: - id: shellcheck exclude: > (?x)^( jjb/global-jjb/.*| + packer/common-packer/.*| jenkins-config/.* )$ - repo: https://github.com/ambv/black - rev: 20.8b1 + rev: 22.3.0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 + rev: 3.9.2 hooks: - id: flake8 args: ["--max-line-length=88"] - repo: https://github.com/pycqa/bandit - rev: 1.6.2 + rev: 1.7.4 hooks: - id: bandit # Bandit does not need to run on test code - exclude: tests/* + exclude: ^tests/ - repo: https://github.com/pycqa/pydocstyle - rev: 5.0.2 + rev: 6.1.1 hooks: - id: pydocstyle - repo: https://github.com/adrienverge/yamllint - rev: v1.23.0 + rev: v1.26.3 hooks: - id: yamllint - repo: https://github.com/btford/write-good - rev: v1.0.3 + rev: v1.0.8 hooks: - id: write-good exclude: docs/jenkins.rst