-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (96 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (96 loc) · 2.33 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cocapn-git-agent"
version = "0.1.2"
description = "FLUX Fleet Greenhorn Git-Agent — API-agnostic autonomous Git-native agent"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Super Z", email = "superz@flux.fleet" },
]
keywords = ["agent", "autonomous", "git", "github", "fleet", "llm", "ai"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"pyyaml>=6.0",
"requests>=2.28",
]
[project.optional-dependencies]
all = [
"git-agent[openai,anthropic,ollama,dev]",
]
openai = [
"openai>=1.0",
]
anthropic = [
"anthropic>=0.18",
]
ollama = [
"httpx>=0.25",
]
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-asyncio>=0.21",
"ruff>=0.1",
"mypy>=1.5",
"types-pyyaml>=6.0",
"types-requests>=2.28",
]
docker = [
"docker>=6.0",
]
[project.scripts]
git-agent = "git_agent.__main__:main"
[tool.setuptools.packages.find]
[tool.setuptools.package-data]
git_agent = ["prompts/*", "onboarding/*"]
[tool.ruff]
target-version = "py311"
line-length = 100
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.isort]
known-first-party = ["git_agent"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["src/git_agent"]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 80