Skip to content

Commit

Permalink
Lint integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Jul 19, 2020
1 parent 50edea7 commit da5b990
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions scripts/integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@

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

from versions import ( # noqa
REQUIRED_JUPYTERLAB as LAB_SPEC,
JUPYTER_LSP_VERSION as PY_VERSION
)
if True:
# a workaround for isort 4.0 limitations
# see https://github.com/timothycrosley/isort/issues/468
from versions import ( # noqa
REQUIRED_JUPYTERLAB as LAB_SPEC,
JUPYTER_LSP_VERSION as PY_VERSION,
)

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


@pytest.mark.parametrize(
"path", map(str, [REQS / "lab.txt", CI / "job.test.yml", MAIN_README, BINDER / "environment.yml"])
"path",
map(
str,
[
REQS / "lab.txt",
CI / "job.test.yml",
MAIN_README,
BINDER / "environment.yml",
],
),
)
def test_jlab_versions(path):
""" is the version of jupyterlab consistent?
Expand Down

0 comments on commit da5b990

Please sign in to comment.