-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (115 loc) · 3.28 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (115 loc) · 3.28 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
123
124
125
126
127
128
129
130
131
132
133
134
[project]
name = "gitcode-api"
version = "1.3.3"
description = "Easy to use Python SDK for the GitCode REST API. Providing builtin CLI tool, and optional LLM integration (MCP, OpenAI tool, and openJiuwen tool) for agents. Community-maintained."
keywords = [
"gitcode", "git", "devops", "api", "sdk", "python", "httpx", "client",
"mcp", "agent", "fastmcp", "llm", "openjiuwen", "mcp client", "mcp server", "model context protocol",
]
readme = "README.md"
requires-python = ">=3.9,<4"
license = "MIT"
authors = [
{name = "Hugo (Jin Huang)", email = "hugo@hugohuang.com"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Intended Audience :: Developers",
"Typing :: Typed",
]
dependencies = [
"httpx",
]
[project.optional-dependencies]
mcp = [
"fastmcp; python_version >= '3.10'",
]
[dependency-groups]
# Testing
test = [
"pytest", "pytest-asyncio", "pytest-html", "pytest-mock", "pytest-cov", "coverage", "json-repair"
]
# Documentation (Sphinx + mirroring upstream GitCode Help pages)
docs = [
{ include-group = "mcp" },
"beautifulsoup4",
"sphinx>=5",
"sphinx-rtd-theme>=3.0",
"sphinx-copybutton",
"myst-parser>=3.0.1",
"gitcode-api[mcp]",
]
# Formatting
format = [
"ruff",
]
# PyInstaller; build with Makefile target binary.
binary = [
{ include-group = "mcp" },
"pyinstaller>=6.0,<7",
]
# FastMCP
mcp = [
"gitcode-api[mcp]",
]
dev = [
{ include-group = "test" },
{ include-group = "format" },
{ include-group = "docs" },
"githubkit>=0.15.4",
"openai",
"setuptools",
]
[project.urls]
Changelog = "https://gitcode-api.readthedocs.io/en/latest/changelog.html"
Issues = "https://github.com/Trenza1ore/GitCode-API/issues"
Documentation = "https://gitcode-api.readthedocs.io"
Gitcode = "https://gitcode.com/SushiNinja/GitCode-API"
Github = "https://github.com/Trenza1ore/GitCode-API"
Homepage = "https://hugohuang.com/gitcode-api"
Author = "https://hugohuang.com"
[project.scripts]
gitcode-api = "gitcode_api.cli:main"
[tool.uv]
default-groups = ["dev"]
[tool.setuptools.package-data]
gitcode_api = ["version.txt", "py.typed"]
[tool.coverage.run]
omit = ["tests/*"]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
addopts = ["-v"]
# Formatting
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.pylint.MAIN]
ignore-paths = ["^(examples|tests|docs|scripts)/.*"]
py-version = "3.9"
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint.DESIGN]
max-positional = 6
max-args = 20
max-return = 5
max-branches = 20
max-locals = 20
max-public-methods = 50
max-module-lines = 2000