Skip to content

Commit 1ee4199

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

File tree

12 files changed

+60
-60
lines changed

12 files changed

+60
-60
lines changed

Diff for: CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
### Bugs fixed
4848

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

5151
### Contributors to this release
5252

@@ -389,7 +389,7 @@
389389

390390
### Enhancements made
391391

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

Diff for: README.md

+2-2
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.

Diff for: nbconvert/__init__.py

+10-10
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
]

Diff for: nbconvert/exporters/__init__.py

+6-6
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
]

Diff for: nbconvert/exporters/base.py

+3-3
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

Diff for: nbconvert/filters/__init__.py

+22-22
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
]

Diff for: nbconvert/filters/ansi.py

+1-1
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

Diff for: nbconvert/filters/markdown.py

+2-2
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

Diff for: nbconvert/filters/strings.py

+8-8
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

Diff for: nbconvert/preprocessors/__init__.py

+2-2
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",

Diff for: tests/exporters/test_webpdf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TestWebPDFExporter(ExportersTestsBase):
3333

3434
exporter_class = WebPDFExporter # type:ignore
3535

36-
@pytest.mark.network()
36+
@pytest.mark.network
3737
def test_export(self):
3838
"""
3939
Can a TemplateExporter export something?

Diff for: tests/test_nbconvertapp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_filename_spaces(self):
151151
assert os.path.isfile("notebook with spaces.pdf")
152152

153153
@flaky
154-
@pytest.mark.network()
154+
@pytest.mark.network
155155
@pytest.mark.skipif(not PLAYWRIGHT_INSTALLED, reason="Playwright not installed")
156156
def test_webpdf_with_chromium(self):
157157
"""

0 commit comments

Comments
 (0)