-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (65 loc) · 2.52 KB
/
pyproject.toml
File metadata and controls
79 lines (65 loc) · 2.52 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "docx-mcp-server"
version = "0.3.1"
description = "MCP server for creating, reading, and editing Word (.docx) documents with markdown conversion, track changes, comments, footnotes, tables, images, sections, and structural validation"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [{ name = "SecurityRonin" }]
keywords = ["mcp", "docx", "word", "track-changes", "comments", "footnotes", "ooxml"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Text Processing :: Markup :: XML",
]
dependencies = [
"mcp>=1.0.0",
"lxml>=4.9.0",
"mistune>=3.0",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=6.0",
"ruff>=0.9",
"pre-commit>=4.0",
]
[project.scripts]
docx-mcp = "docx_mcp.cli:main"
docx-mcp-server = "docx_mcp.cli:main"
[project.urls]
Homepage = "https://github.com/SecurityRonin/docx-mcp"
Repository = "https://github.com/SecurityRonin/docx-mcp"
Issues = "https://github.com/SecurityRonin/docx-mcp/issues"
[tool.hatch.build.targets.wheel]
packages = ["docx_mcp"]
# ── Ruff ────────────────────────────────────────────────────────────────────
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
[tool.ruff.lint.per-file-ignores]
"docx_mcp/document/creation.py" = ["E501"] # inline XML templates
"tests/conftest.py" = ["E501"] # inline XML templates
"tests/test_tracks.py" = ["E501"] # complex assertion expressions
"tests/test_creation.py" = ["E501"] # complex assertion expressions
# ── Pytest ──────────────────────────────────────────────────────────────────
[tool.pytest.ini_options]
testpaths = ["tests"]
# ── Coverage ────────────────────────────────────────────────────────────────
[tool.coverage.run]
source = ["docx_mcp"]
omit = ["docx_mcp/__main__.py"]
[tool.coverage.report]
fail_under = 100
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__",
]