diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 4e09763..1282fc7 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,6 +1,6 @@ -* scroll_over_textarea version: -* Python version: -* Operating System: +- comfyui_scroll_over_textarea version: +- Python version: +- Operating System: ### Description diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml index bde76b8..662fbd7 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build-pipeline.yml @@ -1,5 +1,5 @@ # GitHub CI build pipeline -name: scroll_over_textarea CI build +name: comfyui_scroll_over_textarea CI build on: pull_request: @@ -8,20 +8,20 @@ on: - main jobs: build: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }} env: - PYTHONIOENCODING: "utf8" + PYTHONIOENCODING: 'utf8' strategy: matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ['3.12'] steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/MANIFEST.in b/MANIFEST.in index 535af25..a7f04ff 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,4 +6,4 @@ recursive-exclude * *.py[co] recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif -graft src/scroll_over_textarea/web +graft src/comfyui_scroll_over_textarea/web diff --git a/README.md b/README.md index e1746cd..4c25c6b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ A ComfyUI extension to allow textarea elements to be scrolled over. Useful when To install the dev dependencies and pre-commit (will run the ruff hook), do: ```bash -cd scroll_over_textarea +cd comfyui_scroll_over_textarea pip install -e .[dev] pre-commit install ``` @@ -43,7 +43,7 @@ git push ## Writing custom nodes -An example custom node is located in [node.py](src/scroll_over_textarea/nodes.py). To learn more, read the [docs](https://docs.comfy.org/essentials/custom_node_overview). +An example custom node is located in [node.py](src/comfyui_scroll_over_textarea/nodes.py). To learn more, read the [docs](https://docs.comfy.org/essentials/custom_node_overview). ## Tests diff --git a/__init__.py b/__init__.py index ca4434c..7776e95 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,4 @@ -"""Top-level package for scroll_over_textarea.""" +"""Top-level package for comfyui_scroll_over_textarea.""" __all__ = [ "NODE_CLASS_MAPPINGS", @@ -10,7 +10,7 @@ __author__ = """Josh Whaley""" __email__ = "josh@whaleymail.net" __version__ = "0.0.1" -from .src.scroll_over_textarea.nodes import NODE_CLASS_MAPPINGS -from .src.scroll_over_textarea.nodes import NODE_DISPLAY_NAME_MAPPINGS +from .src.comfyui_scroll_over_textarea.nodes import NODE_CLASS_MAPPINGS +from .src.comfyui_scroll_over_textarea.nodes import NODE_DISPLAY_NAME_MAPPINGS WEB_DIRECTORY = "./web" diff --git a/pyproject.toml b/pyproject.toml index 411b55a..7841a92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=70.0"] build-backend = "setuptools.build_meta" [project] -name = "scroll_over_textarea" +name = "comfyui_scroll_over_textarea" version = "0.1.0" description = "A custom node to prevent scrolling within textarea elements" authors = [ @@ -27,8 +27,8 @@ dev = [ ] [project.urls] -bugs = "https://github.com/joreyaesh/scroll_over_textarea/issues" -homepage = "https://github.com/joreyaesh/scroll_over_textarea" +bugs = "https://github.com/joreyaesh/comfyui_scroll_over_textarea/issues" +homepage = "https://github.com/joreyaesh/comfyui_scroll_over_textarea" [tool.comfy] diff --git a/src/scroll_over_textarea/__init__.py b/src/comfyui_scroll_over_textarea/__init__.py similarity index 100% rename from src/scroll_over_textarea/__init__.py rename to src/comfyui_scroll_over_textarea/__init__.py diff --git a/src/scroll_over_textarea/nodes.py b/src/comfyui_scroll_over_textarea/nodes.py similarity index 100% rename from src/scroll_over_textarea/nodes.py rename to src/comfyui_scroll_over_textarea/nodes.py diff --git a/tests/__init__.py b/tests/__init__.py index ecd7b06..7fad3d2 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1 @@ -"""Unit test package for scroll_over_textarea.""" +"""Unit test package for comfyui_scroll_over_textarea.""" diff --git a/tests/test_scroll_over_textarea.py b/tests/test_scroll_over_textarea.py index fc1f556..830f6c5 100644 --- a/tests/test_scroll_over_textarea.py +++ b/tests/test_scroll_over_textarea.py @@ -1,9 +1,9 @@ #!/usr/bin/env python -"""Tests for `scroll_over_textarea` package.""" +"""Tests for `comfyui_scroll_over_textarea` package.""" import pytest -from src.scroll_over_textarea.nodes import Example +from src.comfyui_scroll_over_textarea.nodes import Example @pytest.fixture diff --git a/web/js/scroll_over_textarea.js b/web/js/comfyui_scroll_over_textarea.js similarity index 90% rename from web/js/scroll_over_textarea.js rename to web/js/comfyui_scroll_over_textarea.js index 4f8ec95..ec96aa5 100644 --- a/web/js/scroll_over_textarea.js +++ b/web/js/comfyui_scroll_over_textarea.js @@ -4,7 +4,7 @@ app.registerExtension({ name: 'Scroll Over Textarea', settings: [ { - id: 'scroll_over_textarea.enable', + id: 'comfyui_scroll_over_textarea.enable', name: 'Prevent Scrolling Within Textareas', type: 'boolean', defaultValue: true, @@ -24,7 +24,7 @@ app.registerExtension({ }, async nodeCreated(node) { const enabled = app.extensionManager.setting.get( - 'scroll_over_textarea.enable' + 'comfyui_scroll_over_textarea.enable' ); setTimeout(() => { updateTextareaScrollListener(enabled); @@ -34,7 +34,7 @@ app.registerExtension({ function updateTextareaScrollListener( ignoreTextareaScroll = app.extensionManager.setting.get( - 'scroll_over_textarea.enable' + 'comfyui_scroll_over_textarea.enable' ) ) { const textareas = document.querySelectorAll('textarea.comfy-multiline-input');