2025-03-14 18:53:14 -07:00
|
|
|
[project]
|
|
|
|
|
name = "surf-new-backend"
|
2026-02-09 17:59:07 -08:00
|
|
|
version = "0.0.13"
|
2025-04-21 23:58:32 -07:00
|
|
|
description = "SurfSense Backend"
|
2025-03-14 18:53:14 -07:00
|
|
|
requires-python = ">=3.12"
|
|
|
|
|
dependencies = [
|
2025-04-13 13:56:22 -07:00
|
|
|
"alembic>=1.13.0",
|
2025-03-14 18:53:14 -07:00
|
|
|
"asyncpg>=0.30.0",
|
2025-12-27 15:13:52 -08:00
|
|
|
"datasets>=2.21.0",
|
|
|
|
|
"pyarrow>=15.0.0,<19.0.0",
|
2025-06-02 21:03:50 +07:00
|
|
|
"discord-py>=2.5.2",
|
2025-07-20 11:42:55 +03:00
|
|
|
"docling>=2.15.0",
|
2025-03-14 18:53:14 -07:00
|
|
|
"fastapi>=0.115.8",
|
2025-04-13 13:56:22 -07:00
|
|
|
"github3.py==4.0.1",
|
2025-08-02 04:39:48 +02:00
|
|
|
"google-api-python-client>=2.156.0",
|
|
|
|
|
"google-auth-oauthlib>=1.2.1",
|
2025-08-13 17:25:34 -07:00
|
|
|
"kokoro>=0.9.4",
|
2025-04-27 15:53:33 -07:00
|
|
|
"linkup-sdk>=0.2.4",
|
2025-05-30 19:17:19 -07:00
|
|
|
"llama-cloud-services>=0.6.25",
|
2026-02-20 16:25:30 +02:00
|
|
|
"Markdown>=3.7",
|
2025-03-14 18:53:14 -07:00
|
|
|
"markdownify>=0.14.1",
|
|
|
|
|
"notion-client>=2.3.0",
|
2025-08-13 17:25:34 -07:00
|
|
|
"numpy>=1.24.0",
|
2025-03-14 18:53:14 -07:00
|
|
|
"pgvector>=0.3.6",
|
|
|
|
|
"playwright>=1.50.0",
|
2025-10-30 14:58:08 -07:00
|
|
|
"pypdf>=5.1.0",
|
2025-05-05 01:39:31 -07:00
|
|
|
"python-ffmpeg>=2.0.12",
|
2025-03-14 18:53:14 -07:00
|
|
|
"rerankers[flashrank]>=0.7.1",
|
2025-03-20 18:52:06 -07:00
|
|
|
"sentence-transformers>=3.4.1",
|
2025-03-14 18:53:14 -07:00
|
|
|
"slack-sdk>=3.34.0",
|
2025-08-13 17:25:34 -07:00
|
|
|
"soundfile>=0.13.1",
|
|
|
|
|
"spacy>=3.8.7",
|
|
|
|
|
"en-core-web-sm@https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl",
|
2025-05-05 01:39:31 -07:00
|
|
|
"static-ffmpeg>=2.13",
|
2025-03-14 18:53:14 -07:00
|
|
|
"tavily-python>=0.3.2",
|
|
|
|
|
"uvicorn[standard]>=0.34.0",
|
|
|
|
|
"validators>=0.34.0",
|
2025-04-11 15:05:17 -07:00
|
|
|
"youtube-transcript-api>=1.0.3",
|
2025-10-12 09:39:04 +05:30
|
|
|
"elasticsearch>=9.1.1",
|
2025-10-11 23:56:12 +05:00
|
|
|
"faster-whisper>=1.1.0",
|
2025-10-20 00:30:00 -07:00
|
|
|
"celery[redis]>=5.5.3",
|
|
|
|
|
"flower>=2.0.1",
|
|
|
|
|
"redis>=5.2.1",
|
2025-11-26 14:19:05 -08:00
|
|
|
"firecrawl-py>=4.9.0",
|
2025-12-14 00:52:01 -08:00
|
|
|
"boto3>=1.35.0",
|
|
|
|
|
"langchain-community>=0.3.31",
|
2025-12-15 21:25:44 -08:00
|
|
|
"litellm>=1.80.10",
|
2025-12-14 00:52:01 -08:00
|
|
|
"langchain-litellm>=0.3.5",
|
2025-12-17 19:43:54 +02:00
|
|
|
"fake-useragent>=2.2.0",
|
2025-12-19 08:36:25 +02:00
|
|
|
"trafilatura>=2.0.0",
|
2025-12-19 14:19:30 -08:00
|
|
|
"fastapi-users[oauth,sqlalchemy]>=15.0.3",
|
2025-12-19 23:26:45 -08:00
|
|
|
"chonkie[all]>=1.5.0",
|
2025-12-21 03:30:10 -08:00
|
|
|
"langgraph-checkpoint-postgres>=3.0.2",
|
|
|
|
|
"psycopg[binary,pool]>=3.3.2",
|
2026-01-13 13:46:01 -08:00
|
|
|
"mcp>=1.25.0",
|
|
|
|
|
"starlette>=0.40.0,<0.51.0",
|
|
|
|
|
"sse-starlette>=3.1.1,<3.1.2",
|
2026-01-20 21:52:32 +05:30
|
|
|
"gitingest>=0.3.1",
|
2026-01-21 22:57:58 -08:00
|
|
|
"composio>=0.10.9",
|
2026-01-22 22:34:49 -08:00
|
|
|
"langchain>=1.2.6",
|
|
|
|
|
"langgraph>=1.0.5",
|
2026-02-03 13:27:09 -08:00
|
|
|
"unstructured[all-docs]>=0.18.31",
|
|
|
|
|
"unstructured-client>=0.42.3",
|
|
|
|
|
"langchain-unstructured>=1.0.1",
|
2026-02-08 18:08:56 +05:30
|
|
|
"slowapi>=0.1.9",
|
2026-02-13 01:34:43 -08:00
|
|
|
"pypandoc_binary>=1.16.2",
|
|
|
|
|
"typst>=0.14.0",
|
2026-02-20 15:21:20 -08:00
|
|
|
"deepagents>=0.4.3",
|
2026-02-25 00:38:27 -08:00
|
|
|
"langchain-daytona>=0.0.2",
|
2025-03-14 18:53:14 -07:00
|
|
|
]
|
2025-07-24 10:24:14 -07:00
|
|
|
|
|
|
|
|
[dependency-groups]
|
|
|
|
|
dev = [
|
|
|
|
|
"ruff>=0.12.5",
|
2026-02-25 16:06:16 +05:30
|
|
|
"pytest>=9.0.2",
|
|
|
|
|
"pytest-asyncio>=1.3.0",
|
2026-02-24 18:19:56 +02:00
|
|
|
"pytest-mock>=3.14",
|
2026-02-25 16:06:16 +05:30
|
|
|
"httpx>=0.28.1",
|
2025-07-24 10:24:14 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
# Exclude a variety of commonly ignored directories.
|
|
|
|
|
exclude = [
|
|
|
|
|
".bzr",
|
|
|
|
|
".direnv",
|
|
|
|
|
".eggs",
|
|
|
|
|
".git",
|
|
|
|
|
".git-rewrite",
|
|
|
|
|
".hg",
|
|
|
|
|
".ipynb_checkpoints",
|
|
|
|
|
".mypy_cache",
|
|
|
|
|
".nox",
|
|
|
|
|
".pants.d",
|
|
|
|
|
".pyenv",
|
|
|
|
|
".pytest_cache",
|
|
|
|
|
".pytype",
|
|
|
|
|
".ruff_cache",
|
|
|
|
|
".svn",
|
|
|
|
|
".tox",
|
|
|
|
|
".venv",
|
|
|
|
|
".vscode",
|
|
|
|
|
"__pypackages__",
|
|
|
|
|
"_build",
|
|
|
|
|
"buck-out",
|
|
|
|
|
"build",
|
|
|
|
|
"dist",
|
|
|
|
|
"node_modules",
|
|
|
|
|
"site-packages",
|
|
|
|
|
"venv",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
line-length = 88
|
|
|
|
|
indent-width = 4
|
|
|
|
|
|
|
|
|
|
# Python 3.12
|
|
|
|
|
target-version = "py312"
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
|
select = [
|
|
|
|
|
"E4", # pycodestyle errors
|
|
|
|
|
"E7", # pycodestyle errors
|
|
|
|
|
"E9", # pycodestyle errors
|
|
|
|
|
"F", # Pyflakes
|
|
|
|
|
"I", # isort
|
|
|
|
|
"N", # pep8-naming
|
|
|
|
|
"UP", # pyupgrade
|
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
|
"T20", # flake8-print
|
|
|
|
|
"SIM", # flake8-simplify
|
|
|
|
|
"RUF", # Ruff-specific rules
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
ignore = [
|
|
|
|
|
"E501", # Line too long (handled by formatter)
|
|
|
|
|
"B008", # Do not perform function calls in argument defaults
|
|
|
|
|
"T201", # Print found (allow print statements)
|
|
|
|
|
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
|
|
|
|
]
|
|
|
|
|
|
2025-07-24 14:43:48 -07:00
|
|
|
extend-select = ["I"]
|
|
|
|
|
|
2025-07-24 10:24:14 -07:00
|
|
|
# Allow fix for all enabled rules (when `--fix`) is provided.
|
|
|
|
|
fixable = ["ALL"]
|
|
|
|
|
unfixable = []
|
|
|
|
|
|
|
|
|
|
# Allow unused variables when underscore-prefixed.
|
|
|
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
|
|
|
|
|
|
|
|
[tool.ruff.format]
|
|
|
|
|
# Use double quotes for strings.
|
|
|
|
|
quote-style = "double"
|
|
|
|
|
|
|
|
|
|
# Indent with spaces, rather than tabs.
|
|
|
|
|
indent-style = "space"
|
|
|
|
|
|
|
|
|
|
# Respect magic trailing commas.
|
|
|
|
|
skip-magic-trailing-comma = false
|
|
|
|
|
|
|
|
|
|
# Automatically detect the appropriate line ending.
|
|
|
|
|
line-ending = "auto"
|
|
|
|
|
|
2025-07-24 14:43:48 -07:00
|
|
|
|
2025-07-24 10:24:14 -07:00
|
|
|
[tool.ruff.lint.isort]
|
|
|
|
|
# Group imports by type
|
2026-02-25 16:06:16 +05:30
|
|
|
known-first-party = ["app", "tests"]
|
2025-07-24 10:24:14 -07:00
|
|
|
force-single-line = false
|
|
|
|
|
combine-as-imports = true
|
2026-01-07 13:36:15 -08:00
|
|
|
|
2026-02-25 16:06:16 +05:30
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
asyncio_mode = "auto"
|
2026-02-26 02:22:10 +05:30
|
|
|
asyncio_default_fixture_loop_scope = "session"
|
|
|
|
|
asyncio_default_test_loop_scope = "session"
|
2026-02-25 16:06:16 +05:30
|
|
|
testpaths = ["tests"]
|
|
|
|
|
python_files = ["test_*.py"]
|
|
|
|
|
python_classes = ["Test*"]
|
|
|
|
|
python_functions = ["test_*"]
|
2026-02-25 18:36:55 +05:30
|
|
|
addopts = "-v --tb=short -x --strict-markers -ra --durations=5"
|
2026-02-25 17:51:33 +05:30
|
|
|
markers = [
|
2026-02-26 02:22:10 +05:30
|
|
|
"unit: pure logic tests, no DB or external services",
|
2026-02-26 23:56:01 +05:30
|
|
|
"integration: tests that require a real PostgreSQL database"
|
2026-02-25 17:51:33 +05:30
|
|
|
]
|
2026-02-26 02:22:10 +05:30
|
|
|
filterwarnings = [
|
|
|
|
|
"ignore::UserWarning:chonkie",
|
|
|
|
|
]
|
2026-02-25 16:06:16 +05:30
|
|
|
|
2026-01-07 13:36:15 -08:00
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
|
where = ["."]
|
2026-01-07 13:42:52 -08:00
|
|
|
include = ["app*", "alembic*"]
|
2026-01-07 13:36:15 -08:00
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
|
|
|
build-backend = "setuptools.build_meta"
|