<type>documentation</type>
<domain>edit</domain>
<id>ruff</id>
<title>Ruff Formatting Options</title>
<date>$Date: 2011-05-04 11:47:03 -0400 (Wed, 04 May 2011) $</date>
<version>$Revision: 24521 $</version>
<product>all</product>

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 <script:show_preferences_gui#prefname="edit.text-wrap-column">`__ preference.
  This is disabled by default, allowing any line length.
  
