Skip to content

Commit ddfc0ff

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7c3a60b commit ddfc0ff

File tree

12 files changed

+61
-60
lines changed

12 files changed

+61
-60
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
### Bugs fixed
7575

76-
- \[HTMLExporter\] Initialize resources before widget filtering [#2118](https://github.com/jupyter/nbconvert/pull/2118) ([@yuvipanda](https://github.com/yuvipanda))
76+
- [HTMLExporter] Initialize resources before widget filtering [#2118](https://github.com/jupyter/nbconvert/pull/2118) ([@yuvipanda](https://github.com/yuvipanda))
7777

7878
### Contributors to this release
7979

@@ -416,7 +416,7 @@
416416

417417
### Enhancements made
418418

419-
- \[Accessibility\] some accessibility improvements [#2021](https://github.com/jupyter/nbconvert/pull/2021) ([@brichet](https://github.com/brichet))
419+
- [Accessibility] some accessibility improvements [#2021](https://github.com/jupyter/nbconvert/pull/2021) ([@brichet](https://github.com/brichet))
420420
- Adopt playwright [#2013](https://github.com/jupyter/nbconvert/pull/2013) ([@brichet](https://github.com/brichet))
421421
- Update to Jupyterlab 4 [#2012](https://github.com/jupyter/nbconvert/pull/2012) ([@brichet](https://github.com/brichet))
422422

@@ -1613,6 +1613,7 @@ raw template
16131613
{%- endblock in_prompt -%}
16141614
"""
16151615

1616+
16161617
exporter_attr = AttrExporter()
16171618
output_attr, _ = exporter_attr.from_notebook_node(nb)
16181619
assert "raw template" in output_attr

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ Jupyter uses a shared copyright model. Each contributor maintains copyright
102102
over their contributions to Jupyter. But, it is important to note that these
103103
contributions are typically only changes to the repositories. Thus, the Jupyter
104104
source code, in its entirety is not the copyright of any single person or
105-
institution. Instead, it is the collective copyright of the entire Jupyter
106-
Development Team. If individual contributors want to maintain a record of what
105+
institution. Instead, it is the collective copyright of the entire Jupyter
106+
Development Team. If individual contributors want to maintain a record of what
107107
changes/contributions they have specific copyright on, they should indicate
108108
their copyright in the commit message of the change, when they commit the
109109
change to one of the Jupyter repositories.

nbconvert/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,9 @@
3232

3333

3434
__all__ = [
35-
"__version__",
36-
"version_info",
37-
"filters",
38-
"postprocessors",
39-
"preprocessors",
40-
"writers",
4135
"ASCIIDocExporter",
42-
"ExporterNameError",
43-
"export",
44-
"get_export_names",
45-
"get_exporter",
4636
"Exporter",
37+
"ExporterNameError",
4738
"FilenameExtension",
4839
"HTMLExporter",
4940
"LatexExporter",
@@ -58,4 +49,13 @@
5849
"SlidesExporter",
5950
"TemplateExporter",
6051
"WebPDFExporter",
52+
"__version__",
53+
"export",
54+
"filters",
55+
"get_export_names",
56+
"get_exporter",
57+
"postprocessors",
58+
"preprocessors",
59+
"version_info",
60+
"writers",
6161
]

nbconvert/exporters/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717

1818
__all__ = [
1919
"ASCIIDocExporter",
20-
"ExporterNameError",
21-
"ExporterDisabledError",
22-
"export",
23-
"get_export_names",
24-
"get_exporter",
2520
"Exporter",
21+
"ExporterDisabledError",
22+
"ExporterNameError",
2623
"FilenameExtension",
2724
"HTMLExporter",
2825
"LatexExporter",
@@ -32,10 +29,13 @@
3229
"PythonExporter",
3330
"QtPDFExporter",
3431
"QtPNGExporter",
35-
"ResourcesDict",
3632
"RSTExporter",
33+
"ResourcesDict",
3734
"ScriptExporter",
3835
"SlidesExporter",
3936
"TemplateExporter",
4037
"WebPDFExporter",
38+
"export",
39+
"get_export_names",
40+
"get_exporter",
4141
]

nbconvert/exporters/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
# -----------------------------------------------------------------------------
2323

2424
__all__ = [
25-
"export",
2625
"Exporter",
27-
"get_exporter",
28-
"get_export_names",
2926
"ExporterNameError",
27+
"export",
28+
"get_export_names",
29+
"get_exporter",
3030
]
3131

3232

nbconvert/filters/__init__.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,38 +35,38 @@
3535
)
3636

3737
__all__ = [
38-
"indent",
39-
"ansi2html",
40-
"ansi2latex",
41-
"strip_ansi",
42-
"citation2latex",
38+
"ConvertExplicitlyRelativePaths",
4339
"DataTypeFilter",
4440
"Highlight2HTML",
4541
"Highlight2Latex",
42+
"add_anchor",
43+
"add_prompts",
44+
"ansi2html",
45+
"ansi2latex",
46+
"ascii_only",
47+
"citation2latex",
48+
"clean_html",
49+
"comment_lines",
50+
"convert_pandoc",
4651
"escape_latex",
52+
"get_lines",
53+
"get_metadata",
54+
"html2text",
55+
"indent",
56+
"ipython2python",
57+
"markdown2asciidoc",
4758
"markdown2html",
48-
"markdown2html_pandoc",
4959
"markdown2html_mistune",
60+
"markdown2html_pandoc",
5061
"markdown2latex",
5162
"markdown2rst",
52-
"markdown2asciidoc",
53-
"get_metadata",
54-
"convert_pandoc",
55-
"ConvertExplicitlyRelativePaths",
56-
"wrap_text",
57-
"html2text",
58-
"clean_html",
59-
"add_anchor",
60-
"strip_dollars",
61-
"strip_files_prefix",
62-
"comment_lines",
63-
"get_lines",
64-
"ipython2python",
65-
"posix_path",
6663
"path2url",
67-
"add_prompts",
68-
"ascii_only",
64+
"posix_path",
6965
"prevent_list_blocks",
66+
"strip_ansi",
67+
"strip_dollars",
68+
"strip_files_prefix",
7069
"strip_trailing_newline",
7170
"text_base64",
71+
"wrap_text",
7272
]

nbconvert/filters/ansi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import markupsafe
99

10-
__all__ = ["strip_ansi", "ansi2html", "ansi2latex"]
10+
__all__ = ["ansi2html", "ansi2latex", "strip_ansi"]
1111

1212
_ANSI_RE = re.compile("\x1b\\[(.*?)([@-~])")
1313

nbconvert/filters/markdown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ def markdown2html_mistune(source: str) -> str:
2727
from .pandoc import convert_pandoc
2828

2929
__all__ = [
30+
"markdown2asciidoc",
3031
"markdown2html",
31-
"markdown2html_pandoc",
3232
"markdown2html_mistune",
33+
"markdown2html_pandoc",
3334
"markdown2latex",
3435
"markdown2rst",
35-
"markdown2asciidoc",
3636
]
3737

3838

nbconvert/filters/strings.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323
from nbconvert.preprocessors.sanitize import _get_default_css_sanitizer
2424

2525
__all__ = [
26-
"wrap_text",
27-
"html2text",
28-
"clean_html",
2926
"add_anchor",
30-
"strip_dollars",
31-
"strip_files_prefix",
27+
"add_prompts",
28+
"ascii_only",
29+
"clean_html",
3230
"comment_lines",
3331
"get_lines",
32+
"html2text",
3433
"ipython2python",
35-
"posix_path",
3634
"path2url",
37-
"add_prompts",
38-
"ascii_only",
35+
"posix_path",
3936
"prevent_list_blocks",
37+
"strip_dollars",
38+
"strip_files_prefix",
4039
"strip_trailing_newline",
4140
"text_base64",
41+
"wrap_text",
4242
]
4343

4444

nbconvert/preprocessors/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
from .tagremove import TagRemovePreprocessor
1919

2020
__all__ = [
21+
"CSSHTMLHeaderPreprocessor",
2122
"CellExecutionError",
22-
"Preprocessor",
2323
"ClearMetadataPreprocessor",
2424
"ClearOutputPreprocessor",
2525
"CoalesceStreamsPreprocessor",
2626
"ConvertFiguresPreprocessor",
27-
"CSSHTMLHeaderPreprocessor",
2827
"ExecutePreprocessor",
2928
"ExtractAttachmentsPreprocessor",
3029
"ExtractOutputPreprocessor",
3130
"HighlightMagicsPreprocessor",
3231
"LatexPreprocessor",
32+
"Preprocessor",
3333
"RegexRemovePreprocessor",
3434
"SVG2PDFPreprocessor",
3535
"TagRemovePreprocessor",

0 commit comments

Comments
 (0)