Skip to content

Commit 47862cb

Browse files
kootenpvproofit404
authored andcommitted
added --fast argument (#12)
1 parent 1c3ad72 commit 47862cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

blacken.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
:type 'boolean
6363
:safe 'booleanp)
6464

65+
(defcustom blacken-fast-unsafe nil
66+
"Skips temporary sanity checks."
67+
:type 'boolean
68+
:safe 'booleanp)
69+
6570
(defun blacken-call-bin (input-buffer output-buffer error-buffer)
6671
"Call process black.
6772
@@ -93,6 +98,8 @@ Return black process the exit code."
9398
(list "--line-length" (number-to-string blacken-line-length)))
9499
(when blacken-allow-py36
95100
(list "--py36"))
101+
(when blacken-fast-unsafe
102+
(list "--fast")
96103
(when blacken-skip-string-normalization
97104
(list "--skip-string-normalization"))
98105
'("-")))

0 commit comments

Comments
 (0)