From 4d4ffb104f7566722462b881f546a501e2a6dfde Mon Sep 17 00:00:00 2001 From: rakhmaevao Date: Mon, 16 Dec 2024 13:30:30 +0300 Subject: [PATCH] Fix for displaying help for the `build_python` command (#601) * Fix show help for jupyter-releaser build-python * Revert new line * Fix run test command --- CONTRIBUTING.md | 2 +- jupyter_releaser/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e2db690b..08b6840f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,7 +50,7 @@ jupyter-releaser --help To run the Python tests, use: ```bash -pytest +hatch run test:test ``` ## Documentation diff --git a/jupyter_releaser/cli.py b/jupyter_releaser/cli.py index cb75e107..6e48db6a 100644 --- a/jupyter_releaser/cli.py +++ b/jupyter_releaser/cli.py @@ -21,7 +21,7 @@ def invoke(self, ctx): """Handle jupyter-releaser config while invoking a command""" # Get the command name and make sure it is valid cmd_name = ctx.protected_args[0] - if cmd_name not in self.commands: + if cmd_name not in self.commands or "--help" in ctx.args: super().invoke(ctx) if cmd_name == "list-envvars":