Skip to content

Commit

Permalink
ENH: add --no-binder flag (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Oct 16, 2024
1 parent 55b6c1e commit 8c6e186
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/compwa_policy/check_dev_files/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def main(argv: Sequence[str] | None = None) -> int: # noqa: PLR0915
test_extras=_to_list(args.ci_test_extras),
)
if has_notebooks:
do(binder.main, dev_python_version, doc_apt_packages)
if not args.no_binder:
do(binder.main, dev_python_version, doc_apt_packages)
do(jupyter.main, args.no_ruff)
do(nbstripout.main, precommit_config, _to_list(args.allowed_cell_metadata))
do(
Expand Down Expand Up @@ -237,6 +238,12 @@ def _create_argparse() -> ArgumentParser:
default=False,
help="Run tox command through pixi",
)
parser.add_argument(
"--no-binder",
action="store_true",
default=False,
help="Do not update the Binder configuration",
)
parser.add_argument(
"--no-cd",
action="store_true",
Expand Down

0 comments on commit 8c6e186

Please sign in to comment.