- Created .dockerignore to exclude unnecessary files from Docker builds. - Added .repomixignore for managing ignored patterns in Repomix. - Introduced Dockerfile.dev for development environment setup with Python 3.12. - Configured docker-compose.yaml to define services, including a PostgreSQL database. - Established a devcontainer.json for Visual Studio Code integration. - Implemented postCreate.sh for automatic dependency installation in the dev container. - Added constants.py to centralize configuration constants for the project. - Updated pyproject.toml to include new development dependencies. - Created initial documentation files for project overview and style conventions. - Added tests for new functionalities to ensure reliability and correctness.
130 lines
3.1 KiB
TOML
130 lines
3.1 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",
|
|
# Spike 1: UI + Tray + Hotkeys
|
|
"flet>=0.21",
|
|
"pystray>=0.19",
|
|
"pillow>=10.0",
|
|
"pynput>=1.7",
|
|
# Spike 2: 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",
|
|
]
|
|
|
|
[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",
|
|
]
|
|
|
|
[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"]
|
|
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.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 = [
|
|
"ruff>=0.14.9",
|
|
"watchfiles>=1.1.1",
|
|
]
|