Skip to content

Commit e6af895

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

File tree

7 files changed

+57
-57
lines changed

7 files changed

+57
-57
lines changed

CHANGELOG.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@ sure to generate valid notebooks.
318318

319319
## 5.0.8
320320

321-
- Add optional support for using \[fastjsonschema\]{.title-ref} as the
321+
- Add optional support for using [fastjsonschema]{.title-ref} as the
322322
JSON validation library. To enable fast validation, install
323-
\[fastjsonschema\]{.title-ref} and set the environment variable
324-
\[NBFORMAT_VALIDATOR\]{.title-ref} to the value
325-
\[fastjsonschema\]{.title-ref}.
323+
[fastjsonschema]{.title-ref} and set the environment variable
324+
[NBFORMAT_VALIDATOR]{.title-ref} to the value
325+
[fastjsonschema]{.title-ref}.
326326

327327
## 5.0.7
328328

@@ -397,7 +397,7 @@ sure to generate valid notebooks.
397397
database.
398398
- Dict-like objects added to NotebookNode attributes are now
399399
transformed to be NotebookNode objects; transformation also works
400-
for \[.update()\]{.title-ref}.
400+
for [.update()]{.title-ref}.
401401

402402
## 4.3
403403

nbformat/__init__.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
from .sentinel import Sentinel
1717

1818
__all__ = [
19-
"versions",
20-
"validate",
19+
"NO_CONVERT",
20+
"NBFormatError",
21+
"NotebookNode",
22+
"Sentinel",
2123
"ValidationError",
24+
"__version__",
2225
"convert",
23-
"from_dict",
24-
"NotebookNode",
2526
"current_nbformat",
2627
"current_nbformat_minor",
27-
"NBFormatError",
28-
"NO_CONVERT",
29-
"reads",
28+
"from_dict",
3029
"read",
31-
"writes",
32-
"write",
30+
"reads",
31+
"validate",
3332
"version_info",
34-
"__version__",
35-
"Sentinel",
33+
"versions",
34+
"write",
35+
"writes",
3636
]
3737

3838
versions = {

nbformat/current.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -47,32 +47,32 @@
4747
)
4848

4949
__all__ = [
50+
"NBFormatError",
5051
"NotebookNode",
52+
"convert",
53+
"nbformat",
54+
"nbformat_minor",
55+
"nbformat_schema",
56+
"new_author",
5157
"new_code_cell",
52-
"new_text_cell",
58+
"new_heading_cell",
59+
"new_metadata",
5360
"new_notebook",
5461
"new_output",
62+
"new_text_cell",
5563
"new_worksheet",
5664
"parse_filename",
57-
"new_metadata",
58-
"new_author",
59-
"new_heading_cell",
60-
"nbformat",
61-
"nbformat_minor",
62-
"nbformat_schema",
63-
"to_notebook_json",
64-
"convert",
65-
"validate",
66-
"NBFormatError",
6765
"parse_py",
66+
"read",
67+
"reads",
6868
"reads_json",
69-
"writes_json",
7069
"reads_py",
71-
"writes_py",
72-
"reads",
73-
"writes",
74-
"read",
70+
"to_notebook_json",
71+
"validate",
7572
"write",
73+
"writes",
74+
"writes_json",
75+
"writes_py",
7676
]
7777

7878
current_nbformat = nbformat

nbformat/json_compat.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
from jsonschema.exceptions import ErrorTree, ValidationError
1717

1818
__all__ = [
19-
"ValidationError",
20-
"JsonSchemaValidator",
19+
"VALIDATORS",
2120
"FastJsonSchemaValidator",
21+
"JsonSchemaValidator",
22+
"ValidationError",
2223
"get_current_validator",
23-
"VALIDATORS",
2424
]
2525

2626

nbformat/v3/__init__.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66

77
__all__ = [
88
"NotebookNode",
9+
"downgrade",
10+
"nbformat",
11+
"nbformat_minor",
12+
"nbformat_schema",
13+
"new_author",
914
"new_code_cell",
10-
"new_text_cell",
15+
"new_heading_cell",
16+
"new_metadata",
1117
"new_notebook",
1218
"new_output",
19+
"new_text_cell",
1320
"new_worksheet",
14-
"new_metadata",
15-
"new_author",
16-
"new_heading_cell",
17-
"nbformat",
18-
"nbformat_minor",
19-
"nbformat_schema",
20-
"reads_json",
21-
"writes_json",
21+
"parse_filename",
2222
"read_json",
23-
"write_json",
24-
"to_notebook_json",
25-
"reads_py",
26-
"writes_py",
2723
"read_py",
28-
"write_py",
24+
"reads_json",
25+
"reads_py",
26+
"to_notebook_json",
2927
"to_notebook_py",
30-
"downgrade",
3128
"upgrade",
32-
"parse_filename",
29+
"write_json",
30+
"write_py",
31+
"writes_json",
32+
"writes_py",
3333
]
3434

3535
import os

nbformat/v4/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
from __future__ import annotations
66

77
__all__ = [
8+
"downgrade",
89
"nbformat",
910
"nbformat_minor",
1011
"nbformat_schema",
1112
"new_code_cell",
1213
"new_markdown_cell",
13-
"new_raw_cell",
1414
"new_notebook",
1515
"new_output",
16+
"new_raw_cell",
1617
"output_from_msg",
1718
"reads",
18-
"writes",
1919
"to_notebook",
20-
"downgrade",
2120
"upgrade",
21+
"writes",
2222
]
2323

2424
from .convert import downgrade, upgrade

nbformat/validator.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323

2424

2525
__all__ = [
26+
"NotebookValidationError",
2627
"ValidationError",
28+
"better_validation_error",
2729
"get_validator",
2830
"isvalid",
29-
"NotebookValidationError",
30-
"better_validation_error",
31+
"iter_validate",
3132
"normalize",
3233
"validate",
33-
"iter_validate",
3434
]
3535

3636

0 commit comments

Comments
 (0)