-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (150 loc) · 4.48 KB
/
Copy pathpyproject.toml
File metadata and controls
164 lines (150 loc) · 4.48 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
# PyPI project name – MUST match what you configured in PyPI Trusted Publishers
name = "gitcopilot"
version = "0.2.7"
description = "Multi-agent AI coding assistant — four specialized agents (Explorer, Planner, Coder, Reviewer) that read your repo, plan safe changes, write code, run tests, and wait for your approval. Any LLM."
requires-python = ">=3.11,<3.13"
readme = "README.md"
# Use a simple SPDX license string, not a table
license = "Apache-2.0"
authors = [{ name = "Ruslan Magana Vsevolodovna" }]
keywords = [
"ai",
"github",
"copilot",
"agentic",
"crewai",
"llm",
"openai",
"claude",
"watsonx",
"ollama",
"fastapi",
"react",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
# License classifier removed to avoid deprecation warning
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: JavaScript",
"Framework :: FastAPI",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Operating System :: OS Independent",
]
dependencies = [
"fastapi>=0.111.0",
"uvicorn[standard]>=0.30.0",
"httpx>=0.27.0",
"python-dotenv>=1.1.0",
"typer>=0.12.0",
"pydantic>=2.7.0",
"crewai[anthropic]>=0.76.9",
"anthropic>=0.39.0",
"crewai-tools>=0.13.4",
"ibm-watsonx-ai>=1.1.0",
"langchain-ibm>=0.3.0",
"rich>=13.0.0",
"pyjwt[crypto]>=2.8.0",
"litellm>=1.80.5",
]
[project.urls]
Homepage = "https://github.com/ruslanmv/gitpilot"
Documentation = "https://github.com/ruslanmv/gitpilot#readme"
Repository = "https://github.com/ruslanmv/gitpilot"
Issues = "https://github.com/ruslanmv/gitpilot/issues"
[project.optional-dependencies]
dev = [
"ruff>=0.6",
"pytest>=8.2",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"coverage[toml]>=7.5",
"mypy>=1.11",
"types-PyYAML>=6.0.12",
"build>=1.2.1",
"twine>=5.0.0",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
]
[project.scripts]
# CLI entry points: these remain based on the python package `gitpilot`
gitpilot = "gitpilot.cli:main"
gitpilot-api = "gitpilot.cli:serve_only"
[tool.setuptools.packages.find]
where = ["."]
include = ["gitpilot*"] # package directory is gitpilot/
[tool.setuptools.package-data]
gitpilot = ["web/*", "web/**/*", "py.typed"]
[tool.setuptools]
include-package-data = true
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "S", "B", "A", "C4", "DTZ", "ICN", "PIE", "PT", "RET", "SIM", "ARG", "PL"]
ignore = ["S101", "PLR0913", "PLR2004"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
# Coverage configuration — Batch P1-B
#
# Strategy: rather than gating the entire codebase (which would force fake
# tests on legacy modules and fight backwards-compatibility), we maintain
# an explicit allowlist of *gated modules*. Each module on the list must
# stay at >= 80 % coverage; new well-tested modules join the list as they
# land. This locks current quality without blocking unrelated PRs.
#
# Run via `make coverage` or `pytest --cov=gitpilot --cov-report=term-missing`.
[tool.coverage.run]
branch = true
# `include` restricts the report to the gated modules. The full-tree run
# is still available via `make coverage-full` for visibility.
include = [
"gitpilot/flags.py",
"gitpilot/agents_md.py",
"gitpilot/mentions.py",
"gitpilot/context_budget.py",
"gitpilot/tool_groups.py",
"gitpilot/mcp_toggles.py",
"gitpilot/modes.py",
"gitpilot/slash_commands.py",
"gitpilot/checkpoints.py",
"gitpilot/rules.py",
"gitpilot/sandbox.py",
"gitpilot/trusted_folders.py",
"gitpilot/errors.py",
"gitpilot/doctor.py",
"gitpilot/prompt_cache.py",
"gitpilot/tool_def_pruner.py",
"gitpilot/context_cache.py",
"gitpilot/streaming.py",
"gitpilot/warmup.py",
"gitpilot/init_wizard.py",
"gitpilot/_deprecation.py",
"gitpilot/plan_guards.py",
]
[tool.coverage.report]
fail_under = 80
show_missing = true
skip_covered = false
precision = 2
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"\\.\\.\\.",
]