Files
noteflow/pyproject.toml
Travis Vasceannie ee12bcd89e Sprint 0: Proto & Schema Foundation
Consolidate proto/DB changes for Sprints 1-6 into coordinated release:

Proto Schema (Increment 0a):
- Add SummarizationOptions message with tone/format/verbosity fields
- Add EXPORT_FORMAT_PDF = 3 to ExportFormat enum
- Add NER messages: ExtractEntitiesRequest/Response, ExtractedEntity
- Add Calendar messages: CalendarEvent, ListCalendarEvents, CalendarProvider
- Add RPCs: ExtractEntities, ListCalendarEvents, GetCalendarProviders,
  InitiateCalendarAuth, CompleteCalendarAuth
- Regenerate Python proto stubs

Database Schema (Increment 0b):
- Add named_entities table for NER storage
- Add webhook_configs and webhook_deliveries tables

Migrations & ORM (Increment 0c):
- Create migration h2c3d4e5f6g7 for named_entities
- Create migration i3d4e5f6g7h8 for webhook tables
- Add NamedEntityModel, WebhookConfigModel, WebhookDeliveryModel
- Update MeetingModel and WorkspaceModel relationships

Dependencies & Config (Increment 0d):
- Add optional deps: pdf (weasyprint), ner (spacy), calendar (google-api)
- Add FeatureFlags class with NOTEFLOW_FEATURE_ env prefix
- Add models CLI for ML model downloads (spacy)
- Update CLI dispatcher for retention/models subcommands
- Create PROTO_CHANGELOG.md

Quality Fixes:
- Add ORM model names to ALLOWED_STRINGS in test_magic_values.py
- Add assertion messages to fix assertion roulette tests

Updates client submodule to c1783f8.
2025-12-25 14:48:37 -05:00

143 lines
3.3 KiB
TOML

[project]
name = "noteflow"
version = "0.1.0"
description = "Intelligent Meeting Notetaker - Local-first capture + navigable recall + evidence-linked summaries"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
# Core
"pydantic>=2.0",
# Audio
"sounddevice>=0.4.6",
"numpy>=1.26",
# Spike 3: ASR
"faster-whisper>=1.0",
# Spike 4: Encryption
"keyring>=25.0",
"cryptography>=42.0",
# gRPC Client-Server
"grpcio>=1.60",
"grpcio-tools>=1.60",
"protobuf>=4.25",
# Database (async PostgreSQL + pgvector)
"sqlalchemy[asyncio]>=2.0",
"asyncpg>=0.29",
"pgvector>=0.3",
"alembic>=1.13",
# Settings
"pydantic-settings>=2.0",
"psutil>=7.1.3",
"diart>=0.9.2",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.0",
"pytest-asyncio>=0.23",
"mypy>=1.8",
"ruff>=0.3",
"basedpyright>=1.18",
"testcontainers[postgres]>=4.0",
]
triggers = [
"pywinctl>=0.3",
]
summarization = [
"ollama>=0.6.1",
"openai>=2.13.0",
"anthropic>=0.75.0",
]
diarization = [
"pyannote.audio>=3.3",
"diart>=0.9.2",
"torch>=2.0",
]
pdf = [
"weasyprint>=62.0",
]
ner = [
"spacy>=3.7",
]
calendar = [
"google-api-python-client>=2.100",
"google-auth>=2.23",
"google-auth-oauthlib>=1.1",
]
all = [
"noteflow[dev,triggers,summarization,diarization,pdf,ner,calendar]",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/noteflow", "spikes"]
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = ["*_pb2.py", "*_pb2_grpc.py", "*_pb2.pyi", ".venv"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line length handled by formatter
]
[tool.ruff.lint.per-file-ignores]
"**/grpc/service.py" = ["TC002", "TC003"] # numpy/Iterator used at runtime
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
exclude = [".venv"]
[tool.basedpyright]
pythonVersion = "3.12"
typeCheckingMode = "standard"
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnknownArgumentType = false
reportUnknownVariableType = false
reportArgumentType = false # proto enums accept ints at runtime
reportIncompatibleVariableOverride = false # SQLAlchemy __table_args__
reportAttributeAccessIssue = false # SQLAlchemy mapped column assignments
exclude = ["**/proto/*_pb2*.py", "**/proto/*_pb2*.pyi", ".venv"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"slow: marks tests as slow (model loading)",
"integration: marks tests requiring external services",
"stress: marks stress/concurrency tests",
]
filterwarnings = [
"ignore:The @wait_container_is_ready decorator is deprecated.*:DeprecationWarning:testcontainers.core.waiting_utils",
]
[dependency-groups]
dev = [
"basedpyright>=1.36.1",
"ruff>=0.14.9",
"watchfiles>=1.1.1",
]