Skip to content

Commit

Permalink
Restore removed import (#2086)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
blink1073 and pre-commit-ci[bot] authored Dec 21, 2023
1 parent 9b3dff7 commit 15b2bc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,7 @@ raw template
{%- endblock in_prompt -%}
"""


exporter_attr = AttrExporter()
output_attr, _ = exporter_attr.from_notebook_node(nb)
assert "raw template" in output_attr
Expand Down
1 change: 1 addition & 0 deletions nbconvert/preprocessors/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from jupyter_client.manager import KernelManager
from nbclient.client import NotebookClient
from nbclient.client import execute as _execute
from nbclient.exceptions import CellExecutionError # noqa: F401

# Backwards compatibility for imported name
# Copyright (c) IPython Development Team.
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,9 @@ ignore = [
"RUF012", # Mutable class attributes should be annotated
]
unfixable = [
# Don't touch print statements
"T201",
# Don't touch noqa lines
"RUF100",
"T201", # Don't touch print statements
"RUF100", # Don't touch noqa lines
"F401", # Unused imports
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit 15b2bc2

Please sign in to comment.