https://github.com/aeron/isort.novaextension
Nova extension to use isort, a Python utility to sort imports.
https://github.com/aeron/isort.novaextension
formatter nova-editor nova-extension python python-isort
Last synced: 2 months ago
JSON representation
Nova extension to use isort, a Python utility to sort imports.
- Host: GitHub
- URL: https://github.com/aeron/isort.novaextension
- Owner: Aeron
- License: apache-2.0
- Created: 2020-09-27T23:38:27.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T16:44:11.000Z (over 2 years ago)
- Last Synced: 2025-04-15T01:45:49.502Z (about 1 year ago)
- Topics: formatter, nova-editor, nova-extension, python, python-isort
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# isort Nova Extension
It’s a stand-alone Nova extension to use [isort](https://github.com/PyCQA/isort),
a Python utility to sort imports .
## Requirements
Before using the extension, it’s necessary to install **isort** itself if you don’t have
one already.
**isort** can be installed simply by running `pip install isort`.
## Configuration
The extension supports both global and workspace configurations.
A workspace configuration always overrides a global one.
### Options
There are three options available to configure: executable path, command arguments,
and format on save. By default, the executable path is `/usr/local/bin/isort`, with no
additional arguments, and formatting on saving is on.
You could alter the executable path if **isort** installed in a different place
or if `/usr/bin/env` usage is desirable.
In the case of `/usr/bin/env`, it becomes the executable path, and `isort` becomes
the first argument.
Also, there is a _virtual environment_ path available as a workspace-only option.
It’s just a handy alias for the `--virtual-env` command argument.
### pyproject.toml
The extension respects `pyproject.toml` in a project directory. So, there’s no
need to specify the `--settings` argument explicitly.