Skip to content

Commit 4e3d31c

Browse files
committed
pre-commit: added end-of-file-fixer, trailing-whitespace
1 parent acf8db6 commit 4e3d31c

5 files changed

Lines changed: 30 additions & 18 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ assignees: ''
1111
A clear and concise description of what the bug is.
1212

1313
**To Reproduce**
14-
Steps to reproduce the behavior
14+
Steps to reproduce the behavior
1515

1616
**Expected behavior**
1717
A clear and concise description of what you expected to happen.

.github/workflows/publish_package.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
# uses: pypa/gh-action-pypi-publish@v1.8.14
4444
# with:
4545
# repository_url: https://test.pypi.org/legacy/
46-
46+
4747
# - name: Clear pip cache
4848
# run: pip cache purge
4949

@@ -56,7 +56,7 @@ jobs:
5656

5757
- name: Publish distribution to Official PyPI
5858
uses: pypa/gh-action-pypi-publish@release/v1
59-
59+
6060
test-pip-installation:
6161
name: Test Comfy CLI Installation via pip
6262
needs: build-n-publish-pypi # This job runs after build-n-publish completes successfully
@@ -87,11 +87,11 @@ jobs:
8787
repository: 'Comfy-Org/homebrew-comfy-cli'
8888
token: ${{ secrets.COMMITTER_TOKEN }}
8989
path: 'homebrew-repo'
90-
90+
9191
- name: Extract version from tag
9292
id: get_version
9393
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
94-
94+
9595
- name: Set up Python environment
9696
run: |
9797
python3 -m venv venv
@@ -101,22 +101,22 @@ jobs:
101101
for i in {1..3}; do
102102
pip install comfy-cli==${{env.VERSION}} && break || sleep 5
103103
done
104-
104+
105105
- name: Generate Homebrew Formula
106106
run: |
107107
source venv/bin/activate
108108
poet -f comfy-cli==$VERSION > comfy-cli.rb
109-
109+
110110
- name: Move Formulas to Tap Directory
111111
run: |
112112
mv comfy-cli.rb homebrew-repo/Formula/
113-
113+
114114
- name: Install Comfy CLI using Homebrew Formula
115115
run: |
116116
brew install --build-from-source --verbose ./homebrew-repo/Formula/comfy-cli.rb
117117
comfy --help
118118
brew uninstall comfy-cli
119-
119+
120120
- name: Commit and Push Formula
121121
run: |
122122
cd homebrew-repo
@@ -140,14 +140,12 @@ jobs:
140140
steps:
141141
- name: Tap Comfy CLI Homebrew tap repository
142142
run: brew tap Comfy-Org/comfy-cli
143-
143+
144144
- name: Install comfy-cli latest via Homebrew
145145
run: brew install comfy-org/comfy-cli/comfy-cli
146-
146+
147147
- name: Test comfy-cli latest Help
148148
run: comfy --help
149-
149+
150150
- name: Uninstall comfy-cli latest
151151
run: brew uninstall comfy-cli
152-
153-

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
PYTHONPATH: ${{ github.workspace }}
3232
run: |
3333
pytest --cov=comfy_cli --cov-report=xml .
34-
34+
3535
- name: Upload coverage to Codecov
3636
uses: codecov/codecov-action@v4
3737
with:

.pre-commit-config.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-yaml
6+
exclude: ^tests/.*$
7+
- id: check-toml
8+
exclude: ^tests/.*$
9+
- id: end-of-file-fixer
10+
exclude: >-
11+
(^.*\.(json|txt)$)|(^tests/.*\.toml$)|(.github/.*TEMPLATE)
12+
- id: trailing-whitespace
13+
exclude: >-
14+
(^.*\.(json|txt)$)
15+
216
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
# Ruff version.
417
rev: v0.6.1
518
hooks:
619
# Run the linter.
@@ -13,3 +26,4 @@ repos:
1326
rev: v2.6.0
1427
hooks:
1528
- id: pyproject-fmt
29+
exclude: ^tests/.*$

comfy_cli/registry/config_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ def initialize_project_config():
214214
# classifiers = [
215215
# # For OS-independent nodes (works on all operating systems)
216216
# "Operating System :: OS Independent",
217-
#
217+
#
218218
# # OR for OS-specific nodes, specify the supported systems:
219219
# "Operating System :: Microsoft :: Windows", # Windows specific
220220
# "Operating System :: POSIX :: Linux", # Linux specific
221221
# "Operating System :: MacOS", # macOS specific
222-
#
222+
#
223223
# # GPU Accelerator support. Pick the ones that are supported by your extension.
224224
# "Environment :: GPU :: NVIDIA CUDA", # NVIDIA CUDA support
225225
# "Environment :: GPU :: AMD ROCm", # AMD ROCm support

0 commit comments

Comments
 (0)