.pre-commit: Add Tools/ros2 to list of black formatted files

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-11-21 19:14:28 -07:00 committed by Tom Pittenger
parent 85172b5646
commit d4c7601b1b
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,11 @@ repos:
rev: 23.7.0
hooks:
- id: black
files: libraries\/AP_DDS\/(wscript|.*\.py)$
files: |
(?x)^(
libraries\/AP_DDS\/(wscript|.*\.py)$ |
Tools/ros2/.*\.py
)$
# # Use to sort python imports by name and put system import first.
# - repo: https://github.com/pycqa/isort