From 78cb44b74af2198ba4211a2c09cc5c2efc32b44d Mon Sep 17 00:00:00 2001 From: Nicolas Brichet <32258950+brichet@users.noreply.github.com> Date: Tue, 12 Dec 2023 16:34:34 +0100 Subject: [PATCH] Run lint when bumping version (#63) --- scripts/bump_version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/bump_version.py b/scripts/bump_version.py index ef195eb..d28ebff 100644 --- a/scripts/bump_version.py +++ b/scripts/bump_version.py @@ -23,7 +23,7 @@ def install_dependencies() -> None: import jupyterlab except ImportError: pkgs.append("jupyterlab~=4.0") - + if pkgs: run([sys.executable, "-m", "pip", "install"] + pkgs) @@ -75,6 +75,7 @@ def bump(force: bool, spec: str) -> None: else: raise FileNotFoundError(f"Could not find package.json under dir {path!s}") + run(["jlpm", "run", "lint"]) if __name__ == "__main__": parser = argparse.ArgumentParser("bump_version", "Bump package version")