Skip to content

Commit da5b990

Browse files
committed
Lint integrity
1 parent 50edea7 commit da5b990

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

scripts/integrity.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424

2525
sys.path.insert(0, str(ROOT))
2626

27-
from versions import ( # noqa
28-
REQUIRED_JUPYTERLAB as LAB_SPEC,
29-
JUPYTER_LSP_VERSION as PY_VERSION
30-
)
27+
if True:
28+
# a workaround for isort 4.0 limitations
29+
# see https://github.com/timothycrosley/isort/issues/468
30+
from versions import ( # noqa
31+
REQUIRED_JUPYTERLAB as LAB_SPEC,
32+
JUPYTER_LSP_VERSION as PY_VERSION,
33+
)
3134

3235
REQS = ROOT / "requirements"
3336
BINDER = ROOT / "binder"
@@ -145,7 +148,16 @@ def test_ts_package_integrity(name, info, the_meta_package):
145148

146149

147150
@pytest.mark.parametrize(
148-
"path", map(str, [REQS / "lab.txt", CI / "job.test.yml", MAIN_README, BINDER / "environment.yml"])
151+
"path",
152+
map(
153+
str,
154+
[
155+
REQS / "lab.txt",
156+
CI / "job.test.yml",
157+
MAIN_README,
158+
BINDER / "environment.yml",
159+
],
160+
),
149161
)
150162
def test_jlab_versions(path):
151163
""" is the version of jupyterlab consistent?

0 commit comments

Comments
 (0)