Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (75 loc) · 1.81 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (75 loc) · 1.81 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pennycore"
version = "0.1.0"
description = "PennyCore — production AI infrastructure: context-engine (memory) + orchestrator (decisions)."
requires-python = ">=3.11"
readme = "README.md"
license = {text = "Proprietary"}
authors = [{name = "Mark"}]
dependencies = [
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"pydantic>=2.5",
"python-dotenv>=1.0",
"psycopg[binary]>=3.1,<4.0",
"redis>=5.0,<7.0",
"anthropic>=0.40,<1.0",
"openai>=1.40,<2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.1",
"httpx>=0.27",
"ruff>=0.4",
"mypy>=1.10",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["contracts*", "context_engine*", "orchestrator*"]
exclude = [
"tests*",
"takehome*",
"benchmarks*",
"scripts*",
"ui*",
"notebooks*",
"docs*",
"data*",
"results*",
"migrations*",
"reports*",
"explainers*",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
addopts = "-ra"
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["takehome", "migrations"]
[tool.ruff.lint]
# Conservative subset — expand in Phase 2 once the codebase has a CI pulse.
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.11"
warn_unused_configs = true
ignore_missing_imports = true
# Strict only on the contracts package today; services land Day 5+ and get
# the strict treatment then.
plugins = ["pydantic.mypy"]
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = "contracts.*"
disallow_untyped_defs = true
disallow_incomplete_defs = true