[project]
name = "expense-tracker"
version = "0.1.0"
description = "Personal expense tracking application"
authors = [
{name = "Keyur Gandhi", email = "keyur4tech123@gmail.com"}
]
dependencies = [
"fastapi>=0.104.0",
"uvicorn[standard]>=0.24.0",
"pydantic>=2.5.0",
"pydantic-settings>=2.0.0",
"supabase>=2.3.0",
"httpx>=0.25.0",
"mcp[cli]>=1.0.0",
"sentence-transformers>=2.2.0",
"numpy>=1.24.0",
"google-genai>=0.1.0",
"python-jose[cryptography]>=3.3.0",
"python-multipart>=0.0.6",
]
requires-python = ">=3.10"
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"black>=23.9.0",
"isort>=5.12.0",
"mypy>=1.6.0",
"coverage>=7.3.0",
]
[project.scripts]
expense-tracker-mcp = "app.servers.mcp.server:main"
run-api = "uvicorn:main"
[build-system]
requires = ["setuptools>=68", "wheel", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["app", "app.core", "app.core.database", "app.core.models", "app.core.repositories", "app.core.services", "app.servers", "app.servers.gemini", "app.servers.gemini.routes", "app.servers.mcp", "app.shared"]
package-dir = {""= "."}
[tool.setuptools.package-data]
app = ["py.typed"]
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["app", "tests"]
known_third_party = ["fastapi", "pydantic", "supabase", "httpx", "pytest"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--tb=short --strict-markers"
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"asyncio: marks tests as async tests",
]
[tool.coverage.run]
source = ["app"]
omit = [
"*/tests/*",
"*/venv/*",
"*/__pycache__/*",
"*/migrations/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[dependency-groups]
dev = [
"pytest-asyncio>=1.0.0",
]