forked from loonghao/photoshop-python-api-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (104 loc) · 3.02 KB
/
pyproject.toml
File metadata and controls
122 lines (104 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "photoshop-mcp-server"
version = "0.1.11"
description = "MCP Server for Photoshop integration using photoshop-python-api"
authors = ["longhao <hal.long@outlook.com>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/loonghao/photoshop-python-api-mcp-server"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
]
[tool.poetry.dependencies]
python = ">=3.10,<3.15"
mcp = "^1.6.0"
photoshop-python-api = "^0.24.0"
loguru = "^0.7.3"
tenacity = "^9.0.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"
pytest-cov = "^6.0.0"
pytest-mock = "^3.11.1"
[tool.poetry.scripts]
photoshop-mcp-server = "photoshop_mcp_server.server:main"
[tool.poetry.urls]
Homepage = "https://github.com/loonghao/photoshop-python-api-mcp-server"
Issues = "https://github.com/loonghao/photoshop-python-api-mcp-server/issues"
[tool.mcp]
name = "Photoshop"
description = "Control Adobe Photoshop using MCP"
version = "0.1.11"
icon = "https://raw.githubusercontent.com/loonghao/photoshop-python-api-mcp-server/main/assets/photoshop-icon.png"
authors = ["Hal <hal.long@outlook.com>"]
repository = "https://github.com/loonghao/photoshop-python-api-mcp-server"
entrypoint = "photoshop_mcp_server.server:create_server"
[tool.pytest.ini_options]
addopts = ""
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["photoshop_mcp_server"]
branch = true
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.1.11"
tag_format = "v$version"
version_files = [
"pyproject.toml:version",
"photoshop_mcp_server/app.py:__version__",
]
[tool.ruff]
line-length = 120
target-version = "py310"
src = ["photoshop_mcp_server", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"D", # pydocstyle
"UP", # pyupgrade
"RUF", # ruff-specific rules
]
ignore = ["D203", "D213", "ARG001", "D107", "D105", "D102", "F811", "I001"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*.py" = ["ARG001", "F401", "F811", "D107", "D105", "D102", "E501", "I001"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.nox]
sessions = ["lint", "lint_fix", "pytest", "build"]
python = ["3.10", "3.11", "3.12", "3.13", "3.14"]
reuse_venv = true
[tool.nox.session.lint]
deps = ["ruff", "mypy"]
commands = [
"mypy --install-types --non-interactive",
"ruff check .",
"ruff format --check .",
"mypy photoshop_mcp_server --strict"
]
[tool.nox.session.lint_fix]
deps = ["ruff", "mypy"]
commands = [
"ruff check --fix .",
"ruff format ."
]
[tool.nox.session.pytest]
deps = ["pytest", "pytest-cov"]
commands = [
"pytest tests/ --cov=photoshop_mcp_server --cov-report=xml:coverage.xml --cov-report=term-missing"
]
[tool.nox.session.build]
deps = ["poetry"]
commands = [
"poetry build"
]