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