This repository was archived by the owner on Aug 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 11PythonIsort = require ' ./python-isort'
22
33module .exports =
4- configDefaults :
5- isortPath : " isort"
6- sortOnSave : false
7- checkOnSave : true
4+ config :
5+ isortPath :
6+ type : ' string'
7+ default : ' isort'
8+ sortOnSave :
9+ type : ' boolean'
10+ default : false
11+ checkOnSave :
12+ type : ' boolean'
13+ default : true
814
915 activate : ->
1016 pi = new PythonIsort ()
Original file line number Diff line number Diff line change 11fs = require ' fs'
2- $ = require ( ' atom ' ). $
2+ $ = require ' jquery '
33process = require ' child_process'
44
55module .exports =
66class PythonIsort
77
88 checkForPythonContext : ->
9- editor = atom .workspace .getActiveEditor ()
9+ editor = atom .workspace .getActiveTextEditor ()
1010 if not editor?
1111 return false
1212 return editor .getGrammar ().name == ' Python'
@@ -37,7 +37,7 @@ class PythonIsort
3737 statusBarElement .text (message)
3838
3939 getFilePath : ->
40- editor = atom .workspace .getActiveEditor ()
40+ editor = atom .workspace .getActiveTextEditor ()
4141 return editor .getPath ()
4242
4343 checkImports : ->
Original file line number Diff line number Diff line change 66 "repository" : " https://github.com/bh/atom-python-isort" ,
77 "license" : " MIT" ,
88 "engines" : {
9- "atom" : " >0.50 .0"
9+ "atom" : " >=0.185.0 <2.0 .0"
1010 },
11- "dependencies" : {}
11+ "dependencies" : {
12+ "jquery" : " ^2.1.4"
13+ }
1214}
You can’t perform that action at this time.
0 commit comments