aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-06-05 21:38:13 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-06-05 21:47:15 -0400
commitbf7e7a3ab765a32be5b165cfeed95753a3ee693f (patch)
tree2d0e816942ab933ebe28a16cd9fe58951ca85211
parentAdd truncation behavior to expect and flip src code/evaluation positions (diff)
downloadnb-bf7e7a3ab765a32be5b165cfeed95753a3ee693f.zip
Remove unused import in clean
-rw-r--r--nb/clean.py1
-rw-r--r--nbs/clean.ipynb10
-rw-r--r--pyproject.toml5
3 files changed, 13 insertions, 3 deletions
diff --git a/nb/clean.py b/nb/clean.py
index d90530d..bd4e3a2 100644
--- a/nb/clean.py
+++ b/nb/clean.py
@@ -1,7 +1,6 @@
# AUTOGENERATED! DO NOT EDIT!
# cell: 189df365
-import nbformat
from nbformat import NotebookNode
from nb.core import read_nb,PathOrFileLike
diff --git a/nbs/clean.ipynb b/nbs/clean.ipynb
index ced2c8c..0b15d6d 100644
--- a/nbs/clean.ipynb
+++ b/nbs/clean.ipynb
@@ -30,7 +30,6 @@
"outputs": [],
"source": [
"#| export\n",
- "import nbformat\n",
"from nbformat import NotebookNode\n",
"\n",
"from nb.core import read_nb,PathOrFileLike"
@@ -44,6 +43,7 @@
"outputs": [],
"source": [
"import copy\n",
+ "import nbformat\n",
"from nb import test"
]
},
@@ -194,7 +194,13 @@
]
}
],
- "metadata": {},
+ "metadata": {
+ "kernelspec": {
+ "display_name": "python3",
+ "language": "python",
+ "name": "python3"
+ }
+ },
"nbformat": 4,
"nbformat_minor": 5
}
diff --git a/pyproject.toml b/pyproject.toml
index 2ae6626..ad437f3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -24,6 +24,11 @@ dev = ["jupyter"]
nb_dir = "nbs"
export_dir = "nb"
+[tool.ruff.lint]
+ignore = [
+ "E701", # multiple statements on one line
+]
+
[tool.setuptools]
packages = ["nb"]