isort is a formatter for Python.

You can enable the isort formatter with:

trunk check enable isort

Auto Enabling

isort will be auto-enabled if any Python files are present.


isort supports the following config files:

  • .isort.cfg

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info. Trunk check provides a default .isort.cfg if your project does not already have one.

Last updated