Skip to content

Commit 0a1e837

Browse files
committed
Replaced autocomplete-python with autocomplete-python-jedi. Deleted some uneeded settings.
1 parent 567eafb commit 0a1e837

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

lib/pythonic-atom.coffee

+3-8
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ module.exports =
1111
atom.config.set("core.disabledPackages", disabledPackages)
1212
else
1313
atom.config.set("core.disabledPackages", ["language-python"])
14-
atom.config.set("editor.showInvisibles", true)
15-
atom.config.set("editor.showIndentGuide", true)
16-
atom.config.set("editor.tabLength", 4)
17-
atom.config.set("editor.tabType", "soft")
1814
spawn('pip', ['install', '-r', pythonPackages])
1915
require('atom-package-deps').install(meta.name)
20-
.then ()->
21-
if not atom.config.get("pythonic-atom")
22-
atom.notifications.addSuccess("pythonic-atom : Packages Installed.")
23-
atom.config.set("pythonic-atom", 1)
16+
if not atom.config.get("pythonic-atom")
17+
atom.notifications.addSuccess("pythonic-atom : Packages Installed.")
18+
atom.config.set("pythonic-atom", 1)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"MagicPython",
2727
"python-tools",
2828
"python-yapf",
29-
"autocomplete-python",
29+
"autocomplete-python-jedi",
3030
"hyperclick",
3131
"script",
3232
"atom-isort"

spec/pythonic-atom-spec.coffee

-8
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,4 @@
44
atom.packages.activatePackage('pythonic-atom').then ->
55
expect(atom.packages.isPackageLoaded('pythonic-atom')).toBe true
66
expect(atom.packages.isPackageActive('pythonic-atom')).toBe true
7-
invisibles = atom.config.get("editor.showInvisibles")
8-
indentGuide = atom.config.get("editor.showIndentGuide")
9-
result = invisibles && indentGuide
10-
length = atom.config.get("editor.tabLength")
11-
tabs = atom.config.get("editor.tabType")
12-
expect(result).toBe true
13-
expect(length).toBe 4
14-
expect(tabs).toBe "soft"
157
expect(atom.packages.isPackageActive('language-python')).toBe false

0 commit comments

Comments
 (0)