Skip to content
Merged

Dev #31

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -10,14 +10,14 @@ repos:

- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: "0.6.10"
rev: "0.9.4"
hooks:
# Update the uv lockfile
- id: uv-lock

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.2
rev: v0.14.1
hooks:
# Run the linter.
- id: ruff
Expand All @@ -26,7 +26,7 @@ repos:
- id: ruff-format

- repo: https://github.com/pycqa/flake8
rev: 7.1.2 # pick a git hash / tag to point to
rev: 7.3.0 # pick a git hash / tag to point to
hooks:
- id: flake8
args: ["--config=.flake8"]
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "funcnodes-plotly"
version = "1.0.0"
version = "1.1.0"
description = ""
readme = "README.md"
classifiers = [
Expand All @@ -12,9 +12,8 @@ dependencies = [
"funcnodes_pandas>=0.2.3",
"funcnodes_core>=0.3.51",
"funcnodes_images",
"plotly>=6.0.0",
"kaleido==0.1.0post1; sys_platform == 'win32'",
"kaleido==0.2.1; sys_platform != 'win32' and sys_platform != 'emscripten'",
"plotly[kaleido]>=6.0.0",

]
requires-python = ">=3.11"
[[project.authors]]
Expand All @@ -28,6 +27,8 @@ dev = [
"pytest",
"pre-commit",
"funcnodes-module",
"funcnodes-pandas",
"funcnodes-files",
]

[build-system]
Expand All @@ -54,7 +55,7 @@ tag_format = "v$version"
version_scheme = "pep440"
version_provider = "uv"
update_changelog_on_bump = true

[project.entry-points."funcnodes.module"]
module = "funcnodes_plotly"
shelf = "funcnodes_plotly:NODE_SHELF"

11 changes: 9 additions & 2 deletions src/funcnodes_plotly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,15 @@ def figure_byte_encoder(figure: go.Figure, preview) -> fn.BytesEncdata:

REACT_PLUGIN = {
"module": os.path.join(os.path.dirname(__file__), "react_plugin", "index.iife.js"),
"css": [os.path.join(os.path.dirname(__file__), "react_plugin", "plugin-custom-renders.css")],
"css": [
os.path.join(
os.path.dirname(__file__), "react_plugin", "plugin-custom-renders.css"
)
],
"js": [
os.path.join(os.path.dirname(__file__), "react_plugin", "plotly-3.1.0.min.js")
],
}


__version__ = "1.0.0"
__version__ = "1.1.0"
3,861 changes: 2 additions & 3,859 deletions src/funcnodes_plotly/react_plugin/index.iife.js

Large diffs are not rendered by default.

3,882 changes: 3,882 additions & 0 deletions src/funcnodes_plotly/react_plugin/plotly-3.1.0.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/react_plugin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.pnp.*
.yarn/
Loading