From 728d4eea26626744460bec2663e79ba78eef3f67 Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Mon, 8 Jan 2024 12:00:00 +0100 Subject: [PATCH] pre-commit: Don't string-normalize quotes in xen-bugtool for now Signed-off-by: Bernhard Kaindl --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ab54eb9f..91bfa432 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ .RECIPEPREFIX=> + +DARKER_OPTS = --isort -tpy36 --skip-string-normalization darker-xen-bugtool: >@ pip install 'darker[isort]' >@ tmp=`mktemp` ;\ -> darker --stdout --isort -tpy36 xen-bugtool >$$tmp ||\ +> darker --stdout $(DARKER_OPTS) xen-bugtool >$$tmp ||\ > exit 5 ;\ > diff -u xen-bugtool $$tmp ;\ > if [ $$? != 0 ]; then cat $$tmp >xen-bugtool ;fi