-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (104 loc) · 2.41 KB
/
pyproject.toml
File metadata and controls
125 lines (104 loc) · 2.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/architectai"]
[project]
name = "architectai"
version = "0.0.1"
description = "Multi-agent architecture planning assistant"
authors = [{ name = "Sarthak" }]
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115,<1.0",
"uvicorn[standard]",
"pydantic>=2.9,<3.0",
"pydantic-settings>=2.0,<3.0",
"httpx",
"redis",
"python-dotenv",
"structlog",
"logfire[fastapi]",
"tenacity",
"openai>=2.0,<3.0",
"instructor>=1.14,<2.0",
"tavily-python>=0.5,<1.0",
]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"black",
"isort",
"ruff",
"mypy",
"bandit",
"pre-commit",
"fakeredis",
]
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.isort]
profile = "black"
line_length = 100
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "B", "UP", "ANN", "S", "A", "C4", "RET", "SIM"]
ignore = ["S101"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ANN", "S"]
"src/architectai/agents/prompts/*.py" = ["E501"]
[tool.mypy]
python_version = "3.11"
strict = true
files = ["src/architectai", "tests", "evals"]
disallow_untyped_defs = true
disallow_incomplete_defs = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "redis.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tenacity.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "openai.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "instructor.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tavily.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "httpx.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "logfire.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
addopts = "--strict-markers --cov=architectai --cov-report=term-missing --cov-report=html"
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
"adversarial: adversarial/edge-case input tests",
]
[tool.coverage.run]
source = ["src/architectai"]
branch = true
[tool.coverage.report]
fail_under = 80
show_missing = true
[tool.bandit]
exclude_dirs = ["tests", ".venv"]