Skip to content

Commit 7d5c028

Browse files
committed
Run prettier
1 parent 2c9498e commit 7d5c028

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ Python language support for [Atom-IDE](https://ide.atom.io/), powered by the [Py
77
![ide-python](https://user-images.githubusercontent.com/13285808/30352538-b9687a76-9820-11e7-8876-c22751645d36.png)
88

99
## Requirements
10+
1011
[`ide-python`](https://atom.io/packages/ide-python) requires [Atom `1.21+`](https://atom.io/) and the [`atom-ide-ui`](https://atom.io/packages/atom-ide-ui) package to expose the functionality within Atom.
1112

1213
## Feature Providers
14+
1315
* [Jedi](https://github.com/davidhalter/jedi) for Completions, Definitions, Hover, References, Signature Help, and Symbols
1416
* [Rope](https://github.com/python-rope/rope) for Completions and renaming
1517
* [Pyflakes](https://github.com/PyCQA/pyflakes) linter to detect various errors
@@ -19,13 +21,16 @@ Python language support for [Atom-IDE](https://ide.atom.io/), powered by the [Py
1921
* [YAPF](https://github.com/google/yapf) for code formatting
2022

2123
## Installation
24+
2225
Install the language server with
26+
2327
```bash
2428
pip install python-language-server
2529
```
2630

2731
Verify that everything is correctly installed and `pyls` is on your `PATH` by running `pyls --help` from the command line.
2832
It should return
33+
2934
```bash
3035
usage: pyls [-h] [--tcp] [--host HOST] [--port PORT]
3136
[--log-config LOG_CONFIG | --log-file LOG_FILE] [-v]
@@ -35,7 +40,9 @@ Python Language Server
3540
```
3641

3742
## Contributing
38-
Always feel free to help out! Whether it's [filing bugs and feature requests](https://github.com/lgeiger/ide-python/issues/new) or working on some of the [open issues](https://github.com/lgeiger/ide-python/issues), Atom's [guide for contributing to packages](https://github.com/atom/atom/blob/master/docs/contributing-to-packages.md) will help get you started.
43+
44+
Always feel free to help out! Whether it's [filing bugs and feature requests](https://github.com/lgeiger/ide-python/issues/new) or working on some of the [open issues](https://github.com/lgeiger/ide-python/issues), Atom's [guide for contributing to packages](https://github.com/atom/atom/blob/master/docs/contributing-to-packages.md) will help get you started.
3945

4046
## License
41-
MIT License. See [the license](LICENSE.md) for more details.
47+
48+
MIT License. See [the license](LICENSE.md) for more details.

lib/main.js

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class PythonLanguageClient extends AutoLanguageClient {
2525
}
2626

2727
mapConfigurationObject(configuration) {
28-
return { pyls: { plugins: configuration } }
28+
return { pyls: { plugins: configuration } };
2929
}
3030

3131
async startServerProcess(projectPath) {
3232
await new Promise(resolve => atom.whenShellEnvironmentLoaded(resolve));
3333

34-
const venvPath = await detectVirtualEnv(projectPath)
34+
const venvPath = await detectVirtualEnv(projectPath);
3535

3636
const pylsEnvironment = Object.assign({}, process.env);
3737

@@ -44,26 +44,21 @@ class PythonLanguageClient extends AutoLanguageClient {
4444
env: pylsEnvironment
4545
});
4646
childProcess.on("error", err =>
47-
atom.notifications.addError(
48-
"Unable to start the Python language server.",
49-
{
50-
dismissable: true,
51-
buttons: [
52-
{
53-
text: "Install Instructions",
54-
onDidClick: () =>
55-
atom.workspace.open("atom://config/packages/ide-python")
56-
},
57-
{
58-
text: "Download Python",
59-
onDidClick: () =>
60-
shell.openExternal("https://www.python.org/downloads/")
61-
}
62-
],
63-
description:
64-
"This can occur if you do not have Python installed or if it is not in your path.\n\n Make sure to install `pyls` by running:\n```\npip install python-language-server\n```"
65-
}
66-
)
47+
atom.notifications.addError("Unable to start the Python language server.", {
48+
dismissable: true,
49+
buttons: [
50+
{
51+
text: "Install Instructions",
52+
onDidClick: () => atom.workspace.open("atom://config/packages/ide-python")
53+
},
54+
{
55+
text: "Download Python",
56+
onDidClick: () => shell.openExternal("https://www.python.org/downloads/")
57+
}
58+
],
59+
description:
60+
"This can occur if you do not have Python installed or if it is not in your path.\n\n Make sure to install `pyls` by running:\n```\npip install python-language-server\n```"
61+
})
6762
);
6863
return childProcess;
6964
}
@@ -81,9 +76,7 @@ class PythonLanguageClient extends AutoLanguageClient {
8176
return new Promise((resolve, reject) => {
8277
let timeout = setTimeout(() => {
8378
clearTimeout(timeout);
84-
this.logger.error(
85-
`Server failed to shutdown in ${milliseconds}ms, forcing termination`
86-
);
79+
this.logger.error(`Server failed to shutdown in ${milliseconds}ms, forcing termination`);
8780
resolve();
8881
}, milliseconds);
8982
});

0 commit comments

Comments
 (0)