Skip to content

Commit 13dc083

Browse files
committed
MNT: more gracefully handle spin adding arguments to functions we override
1 parent ca58cde commit 13dc083

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.spin/cmds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def changelog(ctx, token, revision_range):
9595
)
9696
@click.argument("meson_args", nargs=-1)
9797
@click.pass_context
98-
def build(ctx, meson_args, with_scipy_openblas, jobs=None, clean=False, verbose=False, quiet=False):
98+
def build(ctx, meson_args, with_scipy_openblas, jobs=None, clean=False, verbose=False, quiet=False, *args, **kwargs):
9999
"""🔧 Build package with Meson/ninja and install
100100
101101
MESON_ARGS are passed through e.g.:
@@ -136,7 +136,7 @@ def build(ctx, meson_args, with_scipy_openblas, jobs=None, clean=False, verbose=
136136
help="Number of parallel build jobs"
137137
)
138138
@click.pass_context
139-
def docs(ctx, sphinx_target, clean, first_build, jobs):
139+
def docs(ctx, sphinx_target, clean, first_build, jobs, *args, **kwargs):
140140
"""📖 Build Sphinx documentation
141141
142142
By default, SPHINXOPTS="-W", raising errors on warnings.
@@ -205,7 +205,7 @@ def docs(ctx, sphinx_target, clean, first_build, jobs):
205205
'--verbose', '-v', is_flag=True, default=False
206206
)
207207
@click.pass_context
208-
def test(ctx, pytest_args, markexpr, n_jobs, tests, verbose):
208+
def test(ctx, pytest_args, markexpr, n_jobs, tests, verbose, *args, **kwargs):
209209
"""🔧 Run tests
210210
211211
PYTEST_ARGS are passed through directly to pytest, e.g.:
@@ -486,7 +486,7 @@ def bench(ctx, tests, compare, verbose, quick, commits):
486486
})
487487
@click.argument("python_args", metavar='', nargs=-1)
488488
@click.pass_context
489-
def python(ctx, python_args):
489+
def python(ctx, python_args, *args, **kwargs):
490490
"""🐍 Launch Python shell with PYTHONPATH set
491491
492492
OPTIONS are passed through directly to Python, e.g.:

0 commit comments

Comments
 (0)