Files
MagNetFlix/pyproject.toml
T
kiskaadee 083fe61549 chore(toolchain): update pyproject.toml type checking and add test target to Makefile
- Include tests/ in pyright and configure extraPaths for contracts package.
- Unmask generated gRPC stubs so type checks verify contract seams.
- Add test target to Makefile invoking uv run pytest.

Closes #3
2026-10-31 20:49:11 -05:00

45 lines
1.0 KiB
TOML

[project]
name = "magnetflix-workspace"
version = "0.1.0"
description = "Monorepo workspace for MagNetFlix services"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[tool.uv.workspace]
members = ["services/*"]
[dependency-groups]
dev = [
"grpc-stubs>=1.53.0.6",
"grpcio-tools>=1.83.1",
"mypy-protobuf>=5.1.0",
"pyright>=1.1.411",
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"ruff>=0.16.5",
]
[tool.pyright]
venvPath = "."
venv = ".venv"
extraPaths = ["services/bff/src", "services/worker/src", "services/contracts/src"]
include = ["services/bff", "services/worker", "tests"]
exclude = ["**/__pycache__"]
reportIncompatibleVariableOverride = "none"
[tool.ruff]
line-length = 88
target-version = "py312"
extend-exclude = ["services/contracts/src/magnetflix/v1/"]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
pythonpath = ["services/bff/src", "services/worker/src", "services/contracts/src"]