From 35d17212b7da37a8cde82c88760619f6a57fcd26 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Mon, 4 Sep 2023 17:21:47 -0600 Subject: [PATCH] pre-commit: Ignore sagetech mixed line endings Signed-off-by: Ryan Friedman --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 279ee3978c..44def5fb51 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,6 +24,11 @@ repos: name: Check line ending character (LF) args: ["--fix=lf"] types_or: [python, c, c++, shell] + exclude: | + (?x)^( + libraries/AP_ADSB/AP_ADSB_Sagetech_MXS.cpp | + libraries/AP_ADSB/AP_ADSB_Sagetech_MXS.h + )$ - id: check-added-large-files - id: check-executables-have-shebangs - id: check-shebang-scripts-are-executable