-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (105 loc) · 3.01 KB
/
pyproject.toml
File metadata and controls
123 lines (105 loc) · 3.01 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
[project]
name = "memu-server"
version = "0.1.0"
description = "backend wrapper for memU"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
# Web Framework
"fastapi[standard]>=0.122.0",
"uvicorn[standard]>=0.35.0",
# Memory Service (includes sqlmodel, openai, pendulum, etc.)
"memu-py[postgres]>=1.2.0",
# Database driver (needed for connection URL construction)
"psycopg[binary,pool]>=3.2.9",
# Workflow Engine
"temporalio==1.16.0",
# Configuration & Utils
"pydantic-settings>=2.10.1",
"python-dotenv>=1.0.0",
]
[dependency-groups]
dev = [
"pytest>=7.2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=6.0.0",
"httpx>=0.27.0",
"ruff>=0.11.0",
"pre-commit>=4.0.0",
"bandit[toml]>=1.8.0",
"pylint>=3.0.0",
"mypy>=1.8.0",
"deptry>=0.16.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app", "config"]
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.lint]
# Enable import sorting checks
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade
"B", # flake8-bugbear
]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["app", "config"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.coverage.run]
source = ["app", "config"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.bandit]
exclude_dirs = [".venv", "venv", "tests", ".git", "__pycache__"]
# B105: hardcoded_password_string
# B106: hardcoded_password_funcarg
# B107: hardcoded_password_default
skips = []
[tool.pylint.messages_control]
disable = ["C0111", "C0103"] # missing-docstring, invalid-name
enable = ["W0102", "W0212", "W0611"] # dangerous-default-value, protected-access, unused-import
[tool.deptry]
# Ignore dependencies that are planned for future use but not yet implemented
[tool.deptry.per_rule_ignores]
DEP002 = [
"uvicorn", # Will be used for production deployment
"psycopg", # PostgreSQL adapter used by memu-py[postgres] and alembic
"temporalio", # Planned for workflow orchestration
"python-dotenv", # Environment variables (loaded by pydantic-settings)
]
DEP003 = [
"app", # Project's own package, not an external dependency
"config", # Project's own config package
"pydantic", # Re-exported by pydantic-settings
]
[tool.mypy]
python_version = "3.13"
files = ["app", "config"]
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Gradually enable
ignore_missing_imports = true