forked from alchemiststudiosDOTai/tunacode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
180 lines (167 loc) · 4.37 KB
/
pyproject.toml
File metadata and controls
180 lines (167 loc) · 4.37 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
173
174
175
176
177
178
179
180
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tunacode-cli"
version = "0.1.18"
description = "Your agentic CLI developer."
keywords = ["cli", "agent", "development", "automation"]
readme = "README.md"
requires-python = ">=3.11,<3.14"
license = {text = "MIT"}
authors = [
{ name = "larock22", email = "noreply@github.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"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",
"Topic :: Utilities",
]
dependencies = [
"typer>=0.15.0",
"click>=8.1.0,<8.2.0",
"prompt_toolkit>=3.0.52,<4.0.0",
"pydantic>=2.12.4,<3.0.0",
"pydantic-ai>=1.18.0,<2.0.0",
"pygments>=2.19.2,<3.0.0",
"rich>=14.2.0,<15.0.0",
"tiktoken>=0.12.0,<1.0.0",
"defusedxml",
"textual>=4.0.0,<5.0.0",
"pathspec>=0.12.1",
"textual-autocomplete>=4.0.6",
"html2text>=2024.2.26",
"python-Levenshtein>=0.21.0",
"ruff>=0.14.0",
]
[project.scripts]
tunacode = "tunacode.ui.main:app"
[project.optional-dependencies]
dev = [
"build",
"twine",
"ruff==0.14.9",
"pytest",
"pytest-cov",
"pytest-asyncio",
"textual-dev",
"pre-commit",
"vulture>=2.7",
"unimport>=1.0.0",
"autoflake>=2.0.0",
"dead>=1.5.0",
"mypy",
"bandit",
]
[project.urls]
Homepage = "https://tunacode.xyz/"
Repository = "https://github.com/alchemiststudiosDOTai/tunacode"
Issues = "https://github.com/alchemiststudiosDOTai/tunacode/issues"
Documentation = "https://github.com/alchemiststudiosDOTai/tunacode#readme"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]
ignore = ["E203"]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"__pycache__",
"build",
"dist",
"venv",
"vulture_whitelist.py",
".osgrep",
"*.lance",
"*.egg-info",
]
[tool.vulture]
min_confidence = 80
paths = ["src", "tests"]
exclude = ["venv/", "build/", "dist/", ".git/", "__pycache__/", "*.egg-info/", ".osgrep/"]
# Whitelist of false positives
ignore_names = [
# TYPE_CHECKING imports
"ReadStream",
"WriteStream",
"StateManager",
"ModelRequest",
"CommandRegistry",
# Pytest fixtures
"caplog",
"temp_workspace",
"setup_test_environment",
"excinfo",
# Common patterns
"_complete_event", # prompt_toolkit API requirement
"kw", # **kw pattern
"kwargs", # **kwargs pattern
"message", # exception handling
"response_obj", # API responses
# Test parameters and mock arguments
"should_restart", # test parameter
"exc", # exception handling in __aexit__
"exc_type", # exception handling in __aexit__
"tb", # traceback in __aexit__
"style_dict", # Style.from_dict parameter
"style_str", # get_attrs_for_style_str parameter
]
[tool.bandit]
# Skip low-severity warnings for subprocess and assert statements
skips = ["B404", "B603", "B101", "B607", "B110", "B324", "B103", "B604", "B602", "B108"]
# B404: import subprocess
# B603: subprocess without shell=True
# B101: assert statements
# B607: start process with partial path
# B110: try/except/pass
# B324: hashlib (SHA1 for non-security fingerprinting)
# B103: chmod permissions (needed for template dirs)
# B604: shell=True (validated usage in REPL)
# B602: subprocess with shell=True (security utils)
# B108: hardcoded tmp paths (test fixtures)
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = false
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_no_return = true
follow_imports = "silent"
# Allow CLAUDE_ANCHOR comments in docstrings
disable_error_code = ["annotation-unchecked"]
[tool.hatch.build.targets.wheel]
packages = ["src/tunacode"]
[dependency-groups]
dev = [
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
]