|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | """ |
3 | | -File that contains the pyls plugin mypy-ls. |
| 3 | +File that contains the python-lsp-server plugin mypy-ls. |
4 | 4 |
|
5 | 5 | Created on Fri Jul 10 09:53:57 2020 |
6 | 6 |
|
|
12 | 12 | import os.path |
13 | 13 | import logging |
14 | 14 | from mypy import api as mypy_api |
15 | | -from pyls import hookimpl |
16 | | -from pyls.workspace import Document, Workspace |
17 | | -from pyls.config.config import Config |
| 15 | +from pylsp import hookimpl |
| 16 | +from pylsp.workspace import Document, Workspace |
| 17 | +from pylsp.config.config import Config |
18 | 18 | from typing import Optional, Dict, Any, IO, List |
19 | 19 | import atexit |
20 | 20 |
|
@@ -88,17 +88,17 @@ def parse_line(line: str, document: Optional[Document] = None) -> Optional[Dict[ |
88 | 88 |
|
89 | 89 |
|
90 | 90 | @hookimpl |
91 | | -def pyls_lint(config: Config, workspace: Workspace, document: Document, |
| 91 | +def pylsp_lint(config: Config, workspace: Workspace, document: Document, |
92 | 92 | is_saved: bool) -> List[Dict[str, Any]]: |
93 | 93 | """ |
94 | 94 | Lints. |
95 | 95 |
|
96 | 96 | Parameters |
97 | 97 | ---------- |
98 | 98 | config : Config |
99 | | - The pyls config. |
| 99 | + The pylsp config. |
100 | 100 | workspace : Workspace |
101 | | - The pyls workspace. |
| 101 | + The pylsp workspace. |
102 | 102 | document : Document |
103 | 103 | The document to be linted. |
104 | 104 | is_saved : bool |
@@ -144,14 +144,14 @@ def pyls_lint(config: Config, workspace: Workspace, document: Document, |
144 | 144 |
|
145 | 145 |
|
146 | 146 | @hookimpl |
147 | | -def pyls_settings(config: Config) -> Dict[str, Dict[str, Dict[str, str]]]: |
| 147 | +def pylsp_settings(config: Config) -> Dict[str, Dict[str, Dict[str, str]]]: |
148 | 148 | """ |
149 | 149 | Read the settings. |
150 | 150 |
|
151 | 151 | Parameters |
152 | 152 | ---------- |
153 | 153 | config : Config |
154 | | - The pyls config. |
| 154 | + The pylsp config. |
155 | 155 |
|
156 | 156 | Returns |
157 | 157 | ------- |
|
0 commit comments