You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blackd is a small HTTP server that exposes Black’s functionality over a simple protocol. The main benefit of using it is to avoid the cost of starting up a new Black process every time you want to blacken a file. The only way to configure the formatter is by using the provided config options, it will not pick up on config files.
Address to bind the server to. Defaults to localhost.
2626
+
##### `port` (string)
2627
+
2628
+
Port to listen on. Defaults to 45484.
2629
+
##### `line_length` (number)
2630
+
2631
+
Set how many characters per line to allow. Defaults to 88.
2632
+
##### `skip_source_first_line` (boolean)
2633
+
2634
+
If set to true, the first line of the source code will be ignored. Defaults to false.
2635
+
##### `skip_string_normalization` (boolean)
2636
+
2637
+
If set to true, no string normalization will be performed. Defaults to false.
2638
+
##### `skip_magic_trailing_comma` (boolean)
2639
+
2640
+
If set to true, trailing commas will not be used as a reason to split lines. Defaults to false.
2641
+
##### `preview` (boolean)
2642
+
2643
+
If set to true, experimental and potentially disruptive style changes will be used. Defaults to false.
2644
+
##### `fast` (boolean)
2645
+
2646
+
If set to true, Black will not perform an AST safety check after formatting. Defaults to false.
2647
+
##### `python_variant` (string)
2648
+
2649
+
If set to pyi, Black will format all input files like typing stubs regardless of the file extension. Otherwise, its value must correspond to a Python version or a set of comma-separated Python versions, optionally prefixed with py. (e.g. py3.5,py3.6). Defaults to empty string.
0 commit comments