Skip to content

Commit 15b2bc2

Browse files
Restore removed import (#2086)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9b3dff7 commit 15b2bc2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,7 @@ raw template
14161416
{%- endblock in_prompt -%}
14171417
"""
14181418

1419+
14191420
exporter_attr = AttrExporter()
14201421
output_attr, _ = exporter_attr.from_notebook_node(nb)
14211422
assert "raw template" in output_attr

Diff for: nbconvert/preprocessors/execute.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from jupyter_client.manager import KernelManager
88
from nbclient.client import NotebookClient
99
from nbclient.client import execute as _execute
10+
from nbclient.exceptions import CellExecutionError # noqa: F401
1011

1112
# Backwards compatibility for imported name
1213
# Copyright (c) IPython Development Team.

Diff for: pyproject.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ ignore = [
221221
"RUF012", # Mutable class attributes should be annotated
222222
]
223223
unfixable = [
224-
# Don't touch print statements
225-
"T201",
226-
# Don't touch noqa lines
227-
"RUF100",
224+
"T201", # Don't touch print statements
225+
"RUF100", # Don't touch noqa lines
226+
"F401", # Unused imports
228227
]
229228

230229
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)