black: remove --preview
The --preview option is more likely to cause churn in our Python
formatting. Disable it.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I96e6e7fbd6607c478ca38c5de8a0db0c30b180a5
diff --git a/scripts/format-code.sh b/scripts/format-code.sh
index 9a1eb16..fe731e2 100755
--- a/scripts/format-code.sh
+++ b/scripts/format-code.sh
@@ -182,7 +182,7 @@
LINTER_REQUIRE+=([black]="black")
LINTER_TYPES+=([black]="python")
function do_black() {
- black -l 79 --preview "$@"
+ black -l 79 "$@"
}
LINTER_REQUIRE+=([eslint]="eslint;.eslintrc.json;${CONFIG_PATH}/eslint-global-config.json")