Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 7c477c6

Browse files
authored
Merge pull request #28 from lexicalunit/force_noskip
Force noskip
2 parents 83c7582 + baeeeb0 commit 7c477c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/python-isort.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PythonIsort
99
editor = atom.workspace.getActiveTextEditor()
1010
if not editor?
1111
return false
12-
return editor.getGrammar().name == 'Python'
12+
return editor.getGrammar().scopeName == 'source.python'
1313

1414
removeStatusbarItem: =>
1515
@statusBarTile?.destroy()
@@ -44,7 +44,7 @@ class PythonIsort
4444
if not @checkForPythonContext()
4545
return
4646

47-
params = [@getFilePath(), "-c", "-vb"]
47+
params = ["-ns", @getFilePath(), @getFilePath(), "-c", "-vb"]
4848
isortpath = atom.config.get "python-isort.isortPath"
4949

5050
which = process.spawnSync('which', ['isort']).status
@@ -65,7 +65,7 @@ class PythonIsort
6565
if not @checkForPythonContext()
6666
return
6767

68-
params = [@getFilePath(), "-vb"]
68+
params = ["-ns", @getFilePath(), @getFilePath(), "-vb"]
6969
isortpath = atom.config.get "python-isort.isortPath"
7070

7171
which = process.spawnSync('which', ['isort']).status

0 commit comments

Comments
 (0)