atom-isort

Organize python imports using isort

lexicalunit

12,846

6

3.2.2

MIT

GitHub

This package provides the following services:

atom-isort

apm package david download mit

Atom.io plugin to format and sort Python imports using isort.

Screenshot

Prerequisites

Make sure you have isort and python installed. Set the python installation in the package configuration if necessary. As for installation of isort, there are good options such as conda or pip.

Acknowledgements

Heavily influenced by Benjamin Hedrich's atom-python-isort as well as blacktop's atom-python-yapf. This package is a more up to date and actively developed version of atom-python-isort.

Testing

I've disabled CI/CD for this project because I can not get Atom CI to work correctly since the latest version of isort came out. Below is some instruction on how to do manual testing.

# first uninstall an pre-existing isort installation,
# you'll need to reinstall this yourself at the end of testing.
yes | pip uninstall isort

# install atom-isort
npm install

# check linting
npx eslint .
black src/isort-wrapper.py
flake8 src/isort-wrapper.py

# check unit tests against atom and atom-beta against the latest isort
yes | pip install isort
atom --test spec
atom-beta --test spec

# check unit tests against atom and atom-beta against an isort 4.x version
yes | pip uninstall isort
yes | pip install "isort<5"
atom --test spec
atom-beta --test spec

MIT © lexicalunit et al