diff --git a/CHANGELOG.md b/CHANGELOG.md index 9120c4e..c94d03c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -318,11 +318,11 @@ sure to generate valid notebooks. ## 5.0.8 -- Add optional support for using \[fastjsonschema\]{.title-ref} as the +- Add optional support for using [fastjsonschema]{.title-ref} as the JSON validation library. To enable fast validation, install - \[fastjsonschema\]{.title-ref} and set the environment variable - \[NBFORMAT_VALIDATOR\]{.title-ref} to the value - \[fastjsonschema\]{.title-ref}. + [fastjsonschema]{.title-ref} and set the environment variable + [NBFORMAT_VALIDATOR]{.title-ref} to the value + [fastjsonschema]{.title-ref}. ## 5.0.7 @@ -397,7 +397,7 @@ sure to generate valid notebooks. database. - Dict-like objects added to NotebookNode attributes are now transformed to be NotebookNode objects; transformation also works - for \[.update()\]{.title-ref}. + for [.update()]{.title-ref}. ## 4.3 diff --git a/nbformat/__init__.py b/nbformat/__init__.py index d0fcf85..57940fc 100644 --- a/nbformat/__init__.py +++ b/nbformat/__init__.py @@ -16,23 +16,23 @@ from .sentinel import Sentinel __all__ = [ - "versions", - "validate", + "NO_CONVERT", + "NBFormatError", + "NotebookNode", + "Sentinel", "ValidationError", + "__version__", "convert", - "from_dict", - "NotebookNode", "current_nbformat", "current_nbformat_minor", - "NBFormatError", - "NO_CONVERT", - "reads", + "from_dict", "read", - "writes", - "write", + "reads", + "validate", "version_info", - "__version__", - "Sentinel", + "versions", + "write", + "writes", ] versions = { diff --git a/nbformat/current.py b/nbformat/current.py index c5ea4f6..78a9d9d 100644 --- a/nbformat/current.py +++ b/nbformat/current.py @@ -47,32 +47,32 @@ ) __all__ = [ + "NBFormatError", "NotebookNode", + "convert", + "nbformat", + "nbformat_minor", + "nbformat_schema", + "new_author", "new_code_cell", - "new_text_cell", + "new_heading_cell", + "new_metadata", "new_notebook", "new_output", + "new_text_cell", "new_worksheet", "parse_filename", - "new_metadata", - "new_author", - "new_heading_cell", - "nbformat", - "nbformat_minor", - "nbformat_schema", - "to_notebook_json", - "convert", - "validate", - "NBFormatError", "parse_py", + "read", + "reads", "reads_json", - "writes_json", "reads_py", - "writes_py", - "reads", - "writes", - "read", + "to_notebook_json", + "validate", "write", + "writes", + "writes_json", + "writes_py", ] current_nbformat = nbformat diff --git a/nbformat/json_compat.py b/nbformat/json_compat.py index 3921931..ae2b26a 100644 --- a/nbformat/json_compat.py +++ b/nbformat/json_compat.py @@ -16,11 +16,11 @@ from jsonschema.exceptions import ErrorTree, ValidationError __all__ = [ - "ValidationError", - "JsonSchemaValidator", + "VALIDATORS", "FastJsonSchemaValidator", + "JsonSchemaValidator", + "ValidationError", "get_current_validator", - "VALIDATORS", ] diff --git a/nbformat/v3/__init__.py b/nbformat/v3/__init__.py index 0f0c96a..0f2f830 100644 --- a/nbformat/v3/__init__.py +++ b/nbformat/v3/__init__.py @@ -6,30 +6,30 @@ __all__ = [ "NotebookNode", + "downgrade", + "nbformat", + "nbformat_minor", + "nbformat_schema", + "new_author", "new_code_cell", - "new_text_cell", + "new_heading_cell", + "new_metadata", "new_notebook", "new_output", + "new_text_cell", "new_worksheet", - "new_metadata", - "new_author", - "new_heading_cell", - "nbformat", - "nbformat_minor", - "nbformat_schema", - "reads_json", - "writes_json", + "parse_filename", "read_json", - "write_json", - "to_notebook_json", - "reads_py", - "writes_py", "read_py", - "write_py", + "reads_json", + "reads_py", + "to_notebook_json", "to_notebook_py", - "downgrade", "upgrade", - "parse_filename", + "write_json", + "write_py", + "writes_json", + "writes_py", ] import os diff --git a/nbformat/v4/__init__.py b/nbformat/v4/__init__.py index 0653ff4..479976a 100644 --- a/nbformat/v4/__init__.py +++ b/nbformat/v4/__init__.py @@ -5,20 +5,20 @@ from __future__ import annotations __all__ = [ + "downgrade", "nbformat", "nbformat_minor", "nbformat_schema", "new_code_cell", "new_markdown_cell", - "new_raw_cell", "new_notebook", "new_output", + "new_raw_cell", "output_from_msg", "reads", - "writes", "to_notebook", - "downgrade", "upgrade", + "writes", ] from .convert import downgrade, upgrade diff --git a/nbformat/validator.py b/nbformat/validator.py index 3344dbe..c1d61e2 100644 --- a/nbformat/validator.py +++ b/nbformat/validator.py @@ -23,14 +23,14 @@ __all__ = [ + "NotebookValidationError", "ValidationError", + "better_validation_error", "get_validator", "isvalid", - "NotebookValidationError", - "better_validation_error", + "iter_validate", "normalize", "validate", - "iter_validate", ]