nbsync 0.3.10__tar.gz → 0.3.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nbsync-0.3.10 → nbsync-0.3.11}/PKG-INFO +1 -1
- {nbsync-0.3.10 → nbsync-0.3.11}/pyproject.toml +8 -1
- {nbsync-0.3.10 → nbsync-0.3.11}/src/nbsync/cell.py +1 -1
- {nbsync-0.3.10 → nbsync-0.3.11}/src/nbsync/logger.py +3 -1
- {nbsync-0.3.10 → nbsync-0.3.11}/src/nbsync/sync.py +1 -1
- {nbsync-0.3.10 → nbsync-0.3.11}/LICENSE +0 -0
- {nbsync-0.3.10 → nbsync-0.3.11}/README.md +0 -0
- {nbsync-0.3.10 → nbsync-0.3.11}/src/nbsync/__init__.py +0 -0
- {nbsync-0.3.10 → nbsync-0.3.11}/src/nbsync/markdown.py +0 -0
- {nbsync-0.3.10 → nbsync-0.3.11}/src/nbsync/notebook.py +0 -0
- {nbsync-0.3.10 → nbsync-0.3.11}/src/nbsync/py.typed +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: nbsync
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.11
|
4
4
|
Summary: A core library to synchronize Jupyter notebooks and Markdown documents, enabling seamless integration and dynamic content execution
|
5
5
|
Keywords: jupyter,notebook,documentation,markdown,python,visualization,dynamic-execution,real-time-sync
|
6
6
|
Author: daizutabi
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "nbsync"
|
7
|
-
version = "0.3.
|
7
|
+
version = "0.3.11"
|
8
8
|
description = "A core library to synchronize Jupyter notebooks and Markdown documents, enabling seamless integration and dynamic content execution"
|
9
9
|
readme = "README.md"
|
10
10
|
license = { file = "LICENSE" }
|
@@ -82,3 +82,10 @@ ignore = [
|
|
82
82
|
|
83
83
|
[tool.ruff.lint.per-file-ignores]
|
84
84
|
"**/tests/*" = ["ANN", "ARG", "D", "FBT", "PGH003", "PLR", "RUF", "S", "SLF"]
|
85
|
+
|
86
|
+
[tool.basedpyright]
|
87
|
+
include = ["src", "tests"]
|
88
|
+
reportAny = false
|
89
|
+
reportExplicitAny = false
|
90
|
+
reportImportCycles = false
|
91
|
+
reportUnusedCallResult = false
|
@@ -7,7 +7,9 @@ from typing import Any
|
|
7
7
|
_logger = logging.getLogger("nbsync")
|
8
8
|
|
9
9
|
|
10
|
-
def set_logger(
|
10
|
+
def set_logger(
|
11
|
+
logger: Logger | LoggerAdapter[Logger] | None = None,
|
12
|
+
) -> Logger | LoggerAdapter[Logger]:
|
11
13
|
global _logger # noqa: PLW0603
|
12
14
|
|
13
15
|
if logger:
|
@@ -72,7 +72,7 @@ def update_notebooks(
|
|
72
72
|
|
73
73
|
if url not in notebooks:
|
74
74
|
if url == ".md":
|
75
|
-
notebooks[url] = Notebook(nbformat.v4.new_notebook())
|
75
|
+
notebooks[url] = Notebook(nbformat.v4.new_notebook()) # pyright: ignore[reportUnknownMemberType]
|
76
76
|
else:
|
77
77
|
try:
|
78
78
|
notebooks[url] = Notebook(store.read(url))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|