-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (172 loc) · 5.41 KB
/
pyproject.toml
File metadata and controls
189 lines (172 loc) · 5.41 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
181
182
183
184
185
186
187
188
189
# =============================================================================
# GANTRYFLEET PROJECT CONFIGURATION
# =============================================================================
# Unified configuration for packaging, linting, testing, and code quality.
# =============================================================================
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "gantryfleet"
version = "1.0.0"
description = "AI-Powered Software Factory - Build production apps with voice or chat"
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.11"
authors = [
{name = "Pramod Kumar Voola", email = "pramod.voola@gmail.com"}
]
maintainers = [
{name = "Pramod Kumar Voola", email = "pramod.voola@gmail.com"}
]
keywords = [
"ai",
"code-generation",
"voice-assistant",
"docker",
"vercel",
"fastapi",
"llm",
"claude",
"bedrock",
"software-factory"
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Code Generators",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
"python-multipart>=0.0.6",
"websockets>=12.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.1.0",
"docker>=7.0.0",
"boto3>=1.34.0",
"psycopg2-binary>=2.9.0",
"argon2-cffi>=23.1.0",
"rich>=13.0.0",
"python-dotenv>=1.0.0",
"requests>=2.31.0",
"pyyaml>=6.0.0",
"httpx>=0.26.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.2.0",
"mypy>=1.8.0",
"bandit>=1.7.0",
"safety>=2.3.0",
]
[project.urls]
Homepage = "https://gantryfleet.ai"
Documentation = "https://github.com/Jarvis2021/gantry#readme"
Repository = "https://github.com/Jarvis2021/gantry"
Issues = "https://github.com/Jarvis2021/gantry/issues"
Changelog = "https://github.com/Jarvis2021/gantry/releases"
[project.scripts]
gantryfleet = "src.main:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]
[tool.ruff]
# Ruff configuration for linting and formatting
target-version = "py311"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
# Enable recommended rules
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ERA", # eradicate (commented code)
"PL", # pylint
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"E402", # module level import not at top (needed for dotenv loading)
"B008", # function call in default argument
"B904", # raise from err (verbose, not always needed)
"ERA001", # commented code (false positives for section headers)
"PLR0912", # too many branches (complex logic is sometimes needed)
"PLR0913", # too many arguments
"PLR0915", # too many statements (complex functions)
"PLR2004", # magic value comparison
"PLW0603", # global statement (needed for connection pool)
"PLW1508", # invalid env default type (int is fine)
"PLW1510", # subprocess without check (handled manually)
"PLC0415", # import not at top-level (sometimes needed)
"PTH110", # os.path.exists (mixed pathlib usage is fine)
"PTH123", # open() vs Path.open() (both work fine)
"ARG002", # unused method argument (interface compatibility)
"W291", # trailing whitespace in SQL strings
"W293", # blank line with whitespace
"RUF001", # ambiguous unicode (× in HTML templates)
"RUF013", # implicit Optional (verbose typing)
"SIM105", # contextlib.suppress (try/except is clearer)
"UP017", # Use datetime.UTC (Python 3.11+ only, we need timezone.utc for compatibility)
]
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "PLR2004"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = false # Gradually enable
ignore_missing_imports = true
exclude = ["tests", "venv", "missions"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
asyncio_mode = "auto"
[tool.coverage.run]
source = ["src"]
omit = ["tests/*", "venv/*", "*/__pycache__/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
fail_under = 20
show_missing = true
[tool.bandit]
exclude_dirs = ["tests", "venv"]
skips = ["B101"] # assert usage in tests