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. |
|
isort is a formatter for Python.
You can enable the isort formatter with:
trunk check enable isort
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 Linters for more info. Trunk Code Quality provides a default .isort.cfg
if your project does not already have one.
- isort site
- isort Trunk Code Quality integration source
- Trunk Code Quality's open source plugins repo