Skip to content

Commit 69b3dfb

Browse files
authored
Merge pull request #445 from bollwyvl/fix-pageconfig-parse-isort-jedi
[wip] Fix robot PageConfig parsing, upgrading isort, pin jedi
2 parents a371da2 + d45492b commit 69b3dfb

File tree

15 files changed

+42
-42
lines changed

15 files changed

+42
-42
lines changed

atest/Keywords.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Create Notebok Server Config
5252

5353
Read Page Config
5454
${script} = Get Element Attribute id:jupyter-config-data innerHTML
55-
${config} = Evaluate __import__("json").loads("""${script}""")
55+
${config} = Evaluate __import__("json").loads(r"""${script}""")
5656
Set Global Variable ${PAGE CONFIG} ${config}
5757
Set Global Variable ${LAB VERSION} ${config["appVersion"]}
5858

binder/environment.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: jupyterlab-lsp
22

33
channels:
44
- conda-forge
5-
- defaults
5+
- nodefaults
66

77
dependencies:
88
# runtime dependencies
@@ -12,21 +12,14 @@ dependencies:
1212
# build dependencies
1313
- nodejs >=10.12,<15
1414
# for python language server (and development)
15-
- black
1615
- flake8 >=3.5
17-
# isort 5.0 has breaking API changes which affect (among others) pylint and nblint;
18-
# the pin should be removed once https://github.com/PyCQA/pylint/pull/3725 is merged
19-
# see https://github.com/krassowski/jupyterlab-lsp/pull/291
20-
- isort <5
21-
- mypy
2216
- pip
2317
- pylint
18+
- pyls-black
19+
- pyls-isort
20+
- pyls-mypy
2421
- python-language-server
2522
- ruamel_yaml
26-
- pip: # not-yet-appearing-in-conda-forge
27-
- pyls-black
28-
- pyls-isort
29-
- pyls-mypy
3023
# for R language server and kernel
3124
- r
3225
- r-irkernel
@@ -36,3 +29,5 @@ dependencies:
3629
- tectonic
3730
- texlab
3831
- chktex
32+
# TODO: remove when jedi vs IPython is resolved
33+
- jedi <0.18

docs/Configuring.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,18 @@
175175
]
176176
},
177177
{
178+
"cell_type": "markdown",
179+
"metadata": {},
178180
"source": [
179181
"#### virtual_documents_dir\n",
180182
"\n",
181183
"> default: os.getenv(\"JP_LSP_VIRTUAL_DIR\", \".virtual_documents\")\n",
182184
"\n",
183185
"Path to virtual documents relative to the content manager root directory.\n",
184186
"\n",
185-
"Its default value can be set with `JP_LSP_VIRTUAL_DIR` environment variable and fallback to `.virtual_documents`."
186-
],
187-
"cell_type": "markdown",
188-
"metadata": {}
187+
"Its default value can be set with `JP_LSP_VIRTUAL_DIR` environment variable and\n",
188+
"fallback to `.virtual_documents`."
189+
]
189190
},
190191
{
191192
"cell_type": "markdown",
@@ -224,4 +225,4 @@
224225
},
225226
"nbformat": 4,
226227
"nbformat_minor": 4
227-
}
228+
}

py_src/jupyter_lsp/manager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
import entrypoints
88
from notebook.transutils import _
9-
from traitlets import Bool, Dict as Dict_, Instance, List as List_, Unicode, default
9+
from traitlets import Bool
10+
from traitlets import Dict as Dict_
11+
from traitlets import Instance
12+
from traitlets import List as List_
13+
from traitlets import Unicode, default
1014

1115
from .constants import (
1216
EP_LISTENER_ALL_V1,

py_src/jupyter_lsp/non_blocking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
if os.name == "nt": # pragma: no cover
1111
import msvcrt
12-
from ctypes import windll, byref, wintypes, WinError, POINTER
13-
from ctypes.wintypes import HANDLE, DWORD, BOOL
12+
from ctypes import POINTER, WinError, byref, windll, wintypes
13+
from ctypes.wintypes import BOOL, DWORD, HANDLE
1414
else: # pragma: no cover
1515
import fcntl
1616

py_src/jupyter_lsp/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
)
2121

2222
from notebook.transutils import _
23-
from traitlets import Instance, List as List_, Unicode, default
23+
from traitlets import Instance
24+
from traitlets import List as List_
25+
from traitlets import Unicode, default
2426
from traitlets.config import LoggingConfigurable
2527

2628
LanguageServerSpec = Dict[Text, Any]

requirements/atest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: jupyterlab-lsp
22

33
channels:
44
- conda-forge
5-
- defaults
5+
- nodefaults
66

77
dependencies:
88
- robotframework-seleniumlibrary

requirements/docs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ name: jupyterlab-lsp-docs
22

33
channels:
44
- conda-forge
5-
- defaults
5+
- nodefaults
66

77
dependencies:
88
- nbsphinx
99
- pandas
1010
- pip
1111
- pytest
12+
- pytest-check-links
1213
- python-graphviz
1314
- recommonmark
1415
- sphinx
1516
- sphinx_rtd_theme
1617
- sphinx-autobuild
1718
- sphinx-autodoc-typehints
1819
- sphinx-copybutton
19-
- pip:
20-
- pytest-check-links
21-
- sphinx-markdown-tables
20+
- sphinx-markdown-tables

requirements/github-actions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: jupyterlab-lsp
22

33
channels:
44
- conda-forge
5-
- defaults
5+
- nodefaults
66

77
dependencies:
88
- jupyterlab {lab}
@@ -35,3 +35,5 @@ dependencies:
3535
- geckodriver
3636
- robotframework >=3.2
3737
- robotframework-seleniumlibrary
38+
# TODO: remove when jedi vs IPython is resolved
39+
- jedi <0.18

requirements/lint.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ name: jupyterlab-lsp
22

33
channels:
44
- conda-forge
5-
- defaults
5+
- nodefaults
66

77
dependencies:
88
- black
9-
# isort 5.0 has breaking API changes which affect (among others) pylint and nblint;
10-
# the pin should be removed once https://github.com/PyCQA/pylint/pull/3725 is merged
11-
# see https://github.com/krassowski/jupyterlab-lsp/pull/291
12-
- isort <5
9+
- isort
1310
- mypy
1411
- robotframework-lint >=1.1
1512
- robotframework >=3.2

0 commit comments

Comments
 (0)