From 8db9ae9bc5d6902092619d3f907c69be6c81af52 Mon Sep 17 00:00:00 2001 From: Jakub Valenta Date: Mon, 5 Apr 2021 14:55:54 +0200 Subject: [PATCH] Support Black 20 Use the option --target-version insteead --py36, which was removed in Black 20.8b0. The option --target-version was added in Black 19.3b0, so blacken now requires at least this version of Black. See https://github.com/psf/black/pull/1236 --- blacken.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blacken.el b/blacken.el index 87623bd..ac05857 100644 --- a/blacken.el +++ b/blacken.el @@ -112,7 +112,7 @@ Return black process the exit code." ('fill fill-column) (t blacken-line-length))))) (when blacken-allow-py36 - (list "--py36")) + (list "--target-version" "py36")) (when blacken-fast-unsafe (list "--fast")) (when blacken-skip-string-normalization