ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

isort

by asfaltboy ALL

A python import sort plugin(See https://github.com/timothycrosley/isort)

Details

  • 0.0.5
  • github.​com
  • 6 months ago
  • 49 minutes ago
  • 6 years ago

Installs

  • Total 4K
  • Win 564
  • Mac 2K
  • Linux 1K
Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5
Windows 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 0 0 0 1 2 0 2 1 0 0 0 0 0 0 0 2 0 0 0 2 1 0
Mac 0 2 0 1 4 0 1 4 2 1 1 0 2 2 1 1 2 1 1 6 4 0 0 2 3 0 3 4 3 3 0 0 0 0 1 1 3 4 1 2 1 1 2 3 2 0
Linux 0 0 5 2 0 6 1 1 2 2 2 1 2 0 3 1 1 2 1 2 6 2 1 2 2 0 2 2 2 0 2 0 2 6 1 2 5 1 1 0 1 1 0 1 2 2

Readme

Source
raw.​githubusercontent.​com

Sublime text isort plugin

Small plugin that adds a command to sublime which replaces the contents with the output of the isort library. See below for more information about the library

Install

Package Control

Available in @wbond's package control. Just bring up the package control menu in sublime (default ctrl-shift-p), and enter Package Control: Install Package, search for isort.

Manual

Clone this repository from your Sublime packages directory:

Linux (untested)

$ cd ~/.config/sublime-text-2/Packages
$ git clone https://github.com/thijsdezoete/sublime-text-isort-plugin

OSX

$ cd "~/Library/Application Support/Sublime Text 2/Packages"
$ git clone https://github.com/thijsdezoete/sublime-text-isort-plugin

Windows

$ cd "%APPDATA%\Sublime Text 2"
$ git clone https://github.com/thijsdezoete/sublime-text-isort-plugin

isort your python imports for you so you don't have to.

isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections. It provides a command line utility, Python library, Vim plugin, Sublime plugin, and Kate plugin to quickly sort all your imports.

for more details on isort see the isort repo.

Using isort

By default isort command is run on save. To change this behaviour set your user/project settings to include:

{
    "isort.sort_on_save": false,
}

You can also run the command manually by bringing up the command menu, and select “isort: sort imports” command.

Note that the command is only visible, and runs on autosave, when used on “python files”.