Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.22 KB

isort.md

File metadata and controls

47 lines (34 loc) · 1.22 KB
title description layout
Trunk | How to run isort
isort is a Python utility for sorting imports alphabetically and automatically separating them into sections and by type.
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

isort

isort is a formatter for Python.

You can enable the isort formatter with:

trunk check enable isort

isort example output

Auto Enabling

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

Settings

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 Linters for more info. Trunk Code Quality provides a default .isort.cfg if your project does not already have one.

Links