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
  • 3 years ago
  • 3 hours ago
  • 9 years ago

Installs

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

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”.