diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-06-05 21:51:22 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-06-05 21:51:22 -0400 |
| commit | 91ac1d2557d1d2dcf4f67757aa09e30adc554a3f (patch) | |
| tree | 8e1ac325e55a2aa9d22780536df2f89039e94811 /nbs | |
| parent | Remove unused import in clean (diff) | |
| download | nb-main.zip | |
Diffstat (limited to '')
| -rw-r--r-- | nbs/cli.ipynb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/nbs/cli.ipynb b/nbs/cli.ipynb index 7126e7c..8a7270e 100644 --- a/nbs/cli.ipynb +++ b/nbs/cli.ipynb @@ -40,13 +40,12 @@ "outputs": [], "source": [ "#| export\n", - "import argparse,contextlib,json,sys\n", + "import argparse\n", "from pathlib import Path\n", "\n", "import nbformat\n", "\n", "from nb import export_nb,clean_nb\n", - "from nb.core import read_nb\n", "from nb.config import get_config,Config" ] }, @@ -57,8 +56,8 @@ "metadata": {}, "outputs": [], "source": [ - "import tempfile\n", - "import uuid\n", + "import contextlib,json,sys,tempfile,uuid\n", + "from nb.core import read_nb\n", "from nb import test" ] }, @@ -219,7 +218,7 @@ } ], "source": [ - "with test.raises(exc=SystemExit, contains='1'): run_cli()" + "with test.env(NO_COLOR='1'), test.raises(exc=SystemExit, contains='1'): run_cli()" ] }, { @@ -342,7 +341,13 @@ ] } ], - "metadata": {}, + "metadata": { + "kernelspec": { + "display_name": "python3", + "language": "python", + "name": "python3" + } + }, "nbformat": 4, "nbformat_minor": 5 } |