diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 518bff1488..0183e936bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ exclude: | repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: trailing-whitespace # NOTE(JayF): We shouldn't modify release notes after their @@ -44,17 +44,17 @@ repos: files: .*\.(yaml|yml)$ exclude: releasenotes/.*$ - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.4 + rev: v1.5.5 hooks: - id: remove-tabs exclude: '.*\.(svg)$' - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.3 + rev: v0.14.6 hooks: - - id: ruff + - id: ruff-check args: ['--fix', '--unsafe-fixes'] - repo: https://opendev.org/openstack/hacking - rev: 6.1.0 + rev: 8.0.0 hooks: - id: hacking additional_dependencies: [] @@ -65,13 +65,13 @@ repos: - id: codespell args: [--write-changes] - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v1.0.0 + rev: v1.0.2 hooks: - id: sphinx-lint args: [--enable=default-role] files: ^doc/|releasenotes|api-ref - repo: https://opendev.org/openstack/bashate - rev: 2.1.0 + rev: 2.1.1 hooks: - id: bashate args: ["-iE006,E044", "-eE005,E042"] @@ -81,7 +81,7 @@ repos: language: python types: [shell] - repo: https://github.com/PyCQA/bandit - rev: 1.7.10 + rev: 1.9.1 hooks: - id: bandit args: ["-x", "tests/", "-n5", "-ll", "-c", "tools/bandit.yml"] @@ -93,7 +93,7 @@ repos: types: [ python ] require_serial: true - repo: https://github.com/PyCQA/doc8 - rev: v1.1.2 + rev: v2.0.0 hooks: - id: doc8 - repo: local