File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 52
52
:type 'number
53
53
:safe 'numberp )
54
54
55
+ (defcustom blacken-allow-py36 nil
56
+ " Allow using Python 3.6-only syntax on all input files."
57
+ :type 'boolean
58
+ :safe 'booleanp )
59
+
60
+ (defcustom blacken-skip-string-normalization nil
61
+ " Don't normalize string quotes or prefixes."
62
+ :type 'boolean
63
+ :safe 'booleanp )
64
+
55
65
(defun blacken-call-bin (input-buffer output-buffer error-buffer )
56
66
" Call process black.
57
67
@@ -81,6 +91,10 @@ Return black process the exit code."
81
91
(append
82
92
(when blacken-line-length
83
93
(list " --line-length" (number-to-string blacken-line-length)))
94
+ (when blacken-allow-py36
95
+ (list " --py36" ))
96
+ (when blacken-skip-string-normalization
97
+ (list " --skip-string-normalization" ))
84
98
'(" -" )))
85
99
86
100
;;;### autoload
You can’t perform that action at this time.
0 commit comments