Add initial project structure and files

- Introduced .python-version for Python version management.
- Added AGENTS.md for documentation on agent usage and best practices.
- Created alembic.ini for database migration configurations.
- Implemented main.py as the entry point for the application.
- Established pyproject.toml for project dependencies and configurations.
- Initialized README.md for project overview.
- Generated uv.lock for dependency locking.
- Documented milestones and specifications in docs/milestones.md and docs/spec.md.
- Created logs/status_line.json for logging status information.
- Added initial spike implementations for UI tray hotkeys, audio capture, ASR latency, and encryption validation.
- Set up NoteFlow core structure in src/noteflow with necessary modules and services.
- Developed test suite in tests directory for application, domain, infrastructure, and integration testing.
- Included initial migration scripts in infrastructure/persistence/migrations for database setup.
- Established security protocols in infrastructure/security for key management and encryption.
- Implemented audio infrastructure for capturing and processing audio data.
- Created converters for ASR and ORM in infrastructure/converters.
- Added export functionality for different formats in infrastructure/export.
- Ensured all new files are included in the repository for future development.
This commit is contained in:
2025-12-17 18:28:59 +00:00
commit af1285b181
269 changed files with 45185 additions and 0 deletions

111
pyproject.toml Normal file
View File

@@ -0,0 +1,111 @@
[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",
]
[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",
]
[dependency-groups]
dev = [
"ruff>=0.14.9",
]