diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index b3561165..0246e86e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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. diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index e893c8f2..8d349fb6 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -43,7 +43,7 @@ jobs: # uses: pypa/gh-action-pypi-publish@v1.8.14 # with: # repository_url: https://test.pypi.org/legacy/ - + # - name: Clear pip cache # run: pip cache purge @@ -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 @@ -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 @@ -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 @@ -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 - - diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 782451c0..72ec82bc 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb3818d6..38a354be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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. @@ -13,3 +26,4 @@ repos: rev: v2.6.0 hooks: - id: pyproject-fmt + exclude: ^tests/.*$ diff --git a/comfy_cli/registry/config_parser.py b/comfy_cli/registry/config_parser.py index 4bcdfd57..0ebe76b8 100644 --- a/comfy_cli/registry/config_parser.py +++ b/comfy_cli/registry/config_parser.py @@ -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