Skip to content

Commit acf8db6

Browse files
authored
pre-commit: add pyproject-fmt (#301)
1 parent 0a4aa3e commit acf8db6

File tree

4 files changed

+35
-27
lines changed

4 files changed

+35
-27
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ repos:
88
args: [ --fix ]
99
# Run the formatter.
1010
- id: ruff-format
11+
12+
- repo: https://github.com/tox-dev/pyproject-fmt
13+
rev: v2.6.0
14+
hooks:
15+
- id: pyproject-fmt

pyproject.toml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,41 @@
11
[build-system]
2-
requires = ["setuptools >= 61.0"]
32
build-backend = "setuptools.build_meta"
43

4+
requires = [ "setuptools>=61" ]
5+
56
[project]
67
name = "comfy-cli"
7-
license = { text = "GPL-3.0-only" }
88
version = "0.0.0" # Will be filled in by the CI/CD pipeline. Check publish_package.py.
9-
requires-python = ">= 3.9"
109
description = "A CLI tool for installing and using ComfyUI."
1110
readme = "README.md"
12-
keywords = ["comfyui", "stable diffusion"]
11+
keywords = [ "comfyui", "stable diffusion" ]
1312

13+
license = { text = "GPL-3.0-only" }
1414
maintainers = [
1515
{ name = "Yoland Yan", email = "[email protected]" },
1616
{ name = "James Kwon", email = "[email protected]" },
1717
{ name = "Robin Huang", email = "[email protected]" },
1818
{ name = "Dr.Lt.Data", email = "[email protected]" },
1919
]
2020

21+
requires-python = ">=3.9"
2122
classifiers = [
2223
"Development Status :: 4 - Beta",
2324
"Intended Audience :: Developers",
2425
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
2532
]
2633

2734
dependencies = [
28-
"charset-normalizer>=3.0.0",
29-
"GitPython",
35+
"charset-normalizer>=3",
36+
"click<=8.1.8",
37+
"cookiecutter",
38+
"gitpython",
3039
"httpx",
3140
"mixpanel",
3241
"packaging",
@@ -36,38 +45,30 @@ dependencies = [
3645
"questionary",
3746
"requests",
3847
"rich",
48+
"ruff",
49+
"semver~=3.0.2",
3950
"tomlkit",
40-
"typer>=0.9.0",
41-
"typing-extensions>=4.7.0",
51+
"typer>=0.9",
52+
"typing-extensions>=4.7",
4253
"uv",
4354
"websocket-client",
44-
"ruff",
45-
"semver~=3.0.2",
46-
"cookiecutter",
47-
"click<=8.1.8"
4855
]
4956

50-
[project.optional-dependencies]
51-
dev = ["pre-commit", "pytest", "ruff", "pytest-cov"]
52-
53-
[project.scripts]
54-
comfy = "comfy_cli.__main__:main"
55-
comfy-cli = "comfy_cli.__main__:main"
56-
comfycli = "comfy_cli.__main__:main"
57-
58-
[project.urls]
59-
Repository = "https://github.com/drip-art/comfy-cli.git"
57+
optional-dependencies.dev = [ "pre-commit", "pytest", "pytest-cov", "ruff" ]
58+
urls.Repository = "https://github.com/drip-art/comfy-cli.git"
59+
scripts.comfy = "comfy_cli.__main__:main"
60+
scripts.comfy-cli = "comfy_cli.__main__:main"
61+
scripts.comfycli = "comfy_cli.__main__:main"
6062

6163
[tool.setuptools.packages.find]
62-
where = ["."]
63-
include = ["comfy_cli*"]
64+
where = [ "." ]
65+
include = [ "comfy_cli*" ]
6466

6567
[tool.ruff]
66-
line-length = 120
6768
target-version = "py39"
6869

69-
[tool.ruff.lint]
70-
select = [
70+
line-length = 120
71+
lint.select = [
7172
"E4", # default
7273
"E7", # default
7374
"E9", # default
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

tests/uv/mock_comfy/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)