diff --git a/templates/package/.pre-commit-config.yaml b/templates/package/.pre-commit-config.yaml index db9290f0..4c46cfd5 100644 --- a/templates/package/.pre-commit-config.yaml +++ b/templates/package/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -31,6 +31,7 @@ repos: - id: check-xml exclude: '^templates/robot_description/(robot_srdf_examples.xacro|robot.urdf.xacro)$' - id: check-yaml + args: ["--allow-multiple-documents"] - id: debug-statements - id: destroyed-symlinks - id: detect-private-key @@ -45,7 +46,7 @@ repos: # Python hooks - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.19.0 hooks: - id: pyupgrade args: [--py36-plus] @@ -57,13 +58,13 @@ repos: args: ["--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404"] - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 args: ["--extend-ignore=E501,E203"] - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black args: ["--line-length=99"] @@ -71,7 +72,7 @@ repos: # CPP hooks - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.5 + rev: v19.1.2 hooks: - id: clang-format args: ['-fallback-style=none', '-i'] @@ -118,10 +119,11 @@ repos: stages: [commit] entry: ament_copyright language: system + exclude: .*/conf\.py$ # Docs - RestructuredText hooks - repo: https://github.com/PyCQA/doc8 - rev: v1.1.1 + rev: v1.1.2 hooks: - id: doc8 args: ['--max-line-length=100', '--ignore=D001'] @@ -143,3 +145,13 @@ repos: - id: codespell args: ['--ignore-words=.codespell-ignore-words.txt', '--write-changes'] exclude: CHANGELOG\.rst|\.(svg|pyc|drawio)$ + + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.29.3 + hooks: + - id: check-github-workflows + args: ["--verbose"] + - id: check-github-actions + args: ["--verbose"] + - id: check-dependabot + args: ["--verbose"]