Black Formatting Options

Index of All Documentation » Wing Pro Reference Manual » Source Code Editor » Auto-Reformatting »


Wing invokes Black with python -m black using the Python you have selected in your project configuration. As a result, Black must be installed into your Python with pip install black, conda install black or other package manager.

Several options for formatting are provided in the Editor > Auto-formatting preferences group:

  • Enforce Line Length during reformatting ensures that lines are wrapped during reformatting, using the wrap column configured with the Editor > Line Wrapping > Reformatting Wrap Column preference. This is disabled by default, allowing any line length.
  • Skip String Normalization disables Black's conversion of string delimiters. This is enabled by default, to prevent Black from corrupting code where the choice of string delimiters is part of the coding standard.