From 81bdf40d1f71a0cf1e7bfaa24f260412ae1a8806 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Sun, 12 Mar 2023 20:03:13 -0600 Subject: [PATCH] .pre-commit: Enfore code style for AP_DDS Signed-off-by: Ryan Friedman --- .pre-commit-config.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cd87421bc..01af44c584 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,12 @@ repos: hooks: - id: format-xmllint files: libraries/AP_DDS/dds_xrce_profile.xml -# Disable isort and mypy temporarily due to config conflicts + - repo: https://github.com/psf/black + rev: 23.1.0 + hooks: + - id: black + files: libraries\/AP_DDS\/(wscript|.*\.py)$ + # # Use to sort python imports by name and put system import first. # - repo: https://github.com/pycqa/isort # rev: 5.12.0