Skip to content

Commit

Permalink
Update pre-commit configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl authored and muritane committed Nov 1, 2024
1 parent 2da48fd commit 5e2e2c8
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions templates/package/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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]
Expand All @@ -57,21 +58,21 @@ 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"]


# 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']
Expand Down Expand Up @@ -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']
Expand All @@ -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"]

0 comments on commit 5e2e2c8

Please sign in to comment.