From d4c7601b1beca38366a012cbc564d13e6d7db466 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Tue, 21 Nov 2023 19:14:28 -0700 Subject: [PATCH] .pre-commit: Add Tools/ros2 to list of black formatted files Signed-off-by: Ryan Friedman --- .pre-commit-config.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 44def5fb51..9c15396246 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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