Ruff Formatting Options

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


Wing invokes Ruff with python -m ruff format using the Python you have selected in your project configuration. As a result, Ruff must be installed into your Python with pip install ruff, conda install ruff 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.