forked from shotgun-sh/shotgun
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
172 lines (152 loc) · 4.23 KB
/
pyproject.toml
File metadata and controls
172 lines (152 loc) · 4.23 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
165
166
167
168
169
170
171
172
[project]
name = "shotgun-sh"
version = "0.1.0.dev3"
description = "AI-powered research, planning, and task management CLI tool"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Proofs.io", email = "hello@proofs.io" }
]
requires-python = ">=3.11"
keywords = ["cli", "ai", "agent", "research", "planning", "task-management", "productivity", "llm", "pydantic-ai"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Environment :: Console",
"Operating System :: OS Independent",
]
dependencies = [
"typer>=0.12.0",
"rich>=13.0.0",
"pydantic-ai>=0.0.14",
"pydantic-settings>=2.0.0",
"httpx>=0.27.0",
"jinja2>=3.1.0",
"logfire>=2.0.0",
"sentry-sdk[pure_eval]>=2.0.0",
"posthog>=3.0.0",
"textual>=6.1.0",
"textual-dev>=1.7.0",
"textual-serve>=0.1.0",
"kuzu>=0.7.0",
"tree-sitter>=0.21.0",
"tree-sitter-python>=0.23.0",
"tree-sitter-javascript>=0.23.0",
"tree-sitter-typescript>=0.23.0",
"tree-sitter-go>=0.23.0",
"tree-sitter-rust>=0.23.0",
"watchdog>=4.0.0",
"openai>=1.0.0",
"anthropic>=0.39.0",
"tiktoken>=0.7.0",
"sentencepiece>=0.2.0",
"packaging>=23.0",
"genai-prices>=0.0.27",
"tenacity>=8.0.0",
"dependency-injector>=4.41.0",
"aiofiles>=24.0.0",
]
[project.urls]
Homepage = "https://shotgun.sh/"
Repository = "https://github.com/shotgun-sh/shotgun"
Issues = "https://github.com/shotgun-sh/shotgun-alpha/issues"
Discord = "https://discord.gg/5RmY6J2N7s"
[project.optional-dependencies]
dev = [
"ruff>=0.6.0",
"mypy>=1.11.0",
"lefthook>=1.12.0",
"commitizen>=3.13.0",
]
[project.scripts]
shotgun = "shotgun.main:app"
shotgun-sh = "shotgun.main:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/shotgun"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/README.md",
"/LICENSE",
"/pyproject.toml"
]
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"
[tool.hatch.build]
artifacts = [
"src/shotgun/build_constants.py"
]
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = ["src/shotgun/build_constants.py"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "N", "UP", "B", "S", "C4", "PIE", "T20"]
ignore = ["E501", "T201"]
[tool.ruff.lint.per-file-ignores]
"test/**/*.py" = ["S101", "B017"] # Allow assert statements and broad exceptions in tests
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
# Exclude build hooks and generated files
exclude = ["hatch_build.py", "src/shotgun/build_constants.py"]
plugins = ["pydantic.mypy"]
# Configure test-specific settings
[[tool.mypy.overrides]]
module = "test.*"
# Allow untyped decorators for pytest fixtures
disallow_untyped_decorators = false
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.commitizen]
# NOTE: Keep allowed types in sync with .github/workflows/pr.yml
# Using cz_conventional_commits with standard types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "pep621"
update_changelog_on_bump = true
[dependency-groups]
dev = [
"coverage>=7.10.6",
"debugpy>=1.8.16",
"mypy>=1.17.1",
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"python-dotenv>=1.0.0",
"types-pyyaml>=6.0.12.20250915",
"types-aiofiles>=24.0.0",
]
[tool.pytest.ini_options]
addopts = "--cov=src --cov-report=term-missing --cov-report=html --cov-branch"
testpaths = ["test"]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
precision = 2
skip_covered = false
show_missing = true
[tool.uv.pip]
only-binary = ["kuzu"]