-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (97 loc) · 2.05 KB
/
pyproject.toml
File metadata and controls
110 lines (97 loc) · 2.05 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
[project]
name = "duh"
version = "0.6.0"
description = "Multi-model consensus engine — because one LLM opinion isn't enough"
requires-python = ">=3.11"
dependencies = [
"anthropic>=0.40.0",
"openai>=1.50.0",
"sqlalchemy[asyncio]>=2.0",
"aiosqlite>=0.20.0",
"alembic>=1.13",
"rich>=13.0",
"click>=8.1",
"pydantic>=2.0",
"pydantic-settings>=2.0",
"google-genai>=1.0",
"mistralai>=1.0",
"duckduckgo-search>=7.0",
"fastapi>=0.115",
"uvicorn[standard]>=0.30",
"mcp>=1.0",
"httpx>=0.27",
"bcrypt>=4.0",
"pyjwt>=2.8",
"asyncpg>=0.29",
"fpdf2>=2.7",
"python-dotenv>=1.0",
]
[project.scripts]
duh = "duh.cli.app:cli"
[tool.hatch.build.targets.wheel]
packages = ["src/duh"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.optional-dependencies]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov>=5.0",
"ruff>=0.8",
"mypy>=1.13",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = [
"--strict-markers",
"--strict-config",
"-ra",
]
markers = [
"load: load/stress tests (deselect with '-m \"not load\"')",
]
[tool.coverage.run]
source = ["duh"]
branch = true
[tool.coverage.report]
fail_under = 0
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.",
]
[tool.ruff]
target-version = "py311"
src = ["src", "tests"]
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific
]
[tool.ruff.lint.isort]
known-first-party = ["duh"]
[tool.mypy]
strict = true
python_version = "3.11"
mypy_path = "src"
packages = ["duh"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false