Skip to content

Commit

Permalink
MNT: more gracefully handle spin adding arguments to functions we ove…
Browse files Browse the repository at this point in the history
…rride
  • Loading branch information
ngoldbaum committed May 7, 2024
1 parent ca58cde commit 13dc083
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .spin/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def changelog(ctx, token, revision_range):
)
@click.argument("meson_args", nargs=-1)
@click.pass_context
def build(ctx, meson_args, with_scipy_openblas, jobs=None, clean=False, verbose=False, quiet=False):
def build(ctx, meson_args, with_scipy_openblas, jobs=None, clean=False, verbose=False, quiet=False, *args, **kwargs):
"""🔧 Build package with Meson/ninja and install
MESON_ARGS are passed through e.g.:
Expand Down Expand Up @@ -136,7 +136,7 @@ def build(ctx, meson_args, with_scipy_openblas, jobs=None, clean=False, verbose=
help="Number of parallel build jobs"
)
@click.pass_context
def docs(ctx, sphinx_target, clean, first_build, jobs):
def docs(ctx, sphinx_target, clean, first_build, jobs, *args, **kwargs):
"""📖 Build Sphinx documentation
By default, SPHINXOPTS="-W", raising errors on warnings.
Expand Down Expand Up @@ -205,7 +205,7 @@ def docs(ctx, sphinx_target, clean, first_build, jobs):
'--verbose', '-v', is_flag=True, default=False
)
@click.pass_context
def test(ctx, pytest_args, markexpr, n_jobs, tests, verbose):
def test(ctx, pytest_args, markexpr, n_jobs, tests, verbose, *args, **kwargs):
"""🔧 Run tests
PYTEST_ARGS are passed through directly to pytest, e.g.:
Expand Down Expand Up @@ -486,7 +486,7 @@ def bench(ctx, tests, compare, verbose, quick, commits):
})
@click.argument("python_args", metavar='', nargs=-1)
@click.pass_context
def python(ctx, python_args):
def python(ctx, python_args, *args, **kwargs):
"""🐍 Launch Python shell with PYTHONPATH set
OPTIONS are passed through directly to Python, e.g.:
Expand Down

0 comments on commit 13dc083

Please sign in to comment.