Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assignees: ''
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior
Steps to reproduce the behavior

**Expected behavior**
A clear and concise description of what you expected to happen.
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# uses: pypa/[email protected]
# with:
# repository_url: https://test.pypi.org/legacy/

# - name: Clear pip cache
# run: pip cache purge

Expand All @@ -56,7 +56,7 @@ jobs:

- name: Publish distribution to Official PyPI
uses: pypa/gh-action-pypi-publish@release/v1

test-pip-installation:
name: Test Comfy CLI Installation via pip
needs: build-n-publish-pypi # This job runs after build-n-publish completes successfully
Expand Down Expand Up @@ -87,11 +87,11 @@ jobs:
repository: 'Comfy-Org/homebrew-comfy-cli'
token: ${{ secrets.COMMITTER_TOKEN }}
path: 'homebrew-repo'

- name: Extract version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Set up Python environment
run: |
python3 -m venv venv
Expand All @@ -101,22 +101,22 @@ jobs:
for i in {1..3}; do
pip install comfy-cli==${{env.VERSION}} && break || sleep 5
done

- name: Generate Homebrew Formula
run: |
source venv/bin/activate
poet -f comfy-cli==$VERSION > comfy-cli.rb

- name: Move Formulas to Tap Directory
run: |
mv comfy-cli.rb homebrew-repo/Formula/

- name: Install Comfy CLI using Homebrew Formula
run: |
brew install --build-from-source --verbose ./homebrew-repo/Formula/comfy-cli.rb
comfy --help
brew uninstall comfy-cli

- name: Commit and Push Formula
run: |
cd homebrew-repo
Expand All @@ -140,14 +140,12 @@ jobs:
steps:
- name: Tap Comfy CLI Homebrew tap repository
run: brew tap Comfy-Org/comfy-cli

- name: Install comfy-cli latest via Homebrew
run: brew install comfy-org/comfy-cli/comfy-cli

- name: Test comfy-cli latest Help
run: comfy --help

- name: Uninstall comfy-cli latest
run: brew uninstall comfy-cli


2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
PYTHONPATH: ${{ github.workspace }}
run: |
pytest --cov=comfy_cli --cov-report=xml .

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
16 changes: 15 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
exclude: ^tests/.*$
- id: check-toml
exclude: ^tests/.*$
- id: end-of-file-fixer
exclude: >-
(^.*\.(json|txt)$)|(^tests/.*\.toml$)|(.github/.*TEMPLATE)
- id: trailing-whitespace
exclude: >-
(^.*\.(json|txt)$)

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.1
hooks:
# Run the linter.
Expand All @@ -13,3 +26,4 @@ repos:
rev: v2.6.0
hooks:
- id: pyproject-fmt
exclude: ^tests/.*$
4 changes: 2 additions & 2 deletions comfy_cli/registry/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ def initialize_project_config():
# classifiers = [
# # For OS-independent nodes (works on all operating systems)
# "Operating System :: OS Independent",
#
#
# # OR for OS-specific nodes, specify the supported systems:
# "Operating System :: Microsoft :: Windows", # Windows specific
# "Operating System :: POSIX :: Linux", # Linux specific
# "Operating System :: MacOS", # macOS specific
#
#
# # GPU Accelerator support. Pick the ones that are supported by your extension.
# "Environment :: GPU :: NVIDIA CUDA", # NVIDIA CUDA support
# "Environment :: GPU :: AMD ROCm", # AMD ROCm support
Expand Down
Loading