Files
Arbiter/pyproject.toml
adminandClaude Opus 5.5 085bfc9afe Arbiter repository: carved out of compass-contract-hub, Workflow left behind
Workflow (apps/compass) is retired; Arbiter and the compass_* engine packages
continue here with their history (git filter-repo from compass-contract-hub
origin/main c2e7e8e, dropping apps/compass, its two workflows, .meduza and the
two Workflow-only plans). Old->new SHAs: docs/history/compass-contract-hub-sha-map.txt.

- workspace root renamed arbiter-workspace (uv.lock relocked); excludes apps/arbiter
- .dockerignore/.gitignore/arbiter.yml/hooks no longer name apps/compass
- README, CLAUDE.md, AGENTS.md, HANDOFF.md, ADR-005: the new repository and the
  new git URL form for the unchanged distributions (compass-ingestion etc.)
- engine contract/import-boundary tests and docstrings point at this repository

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:39:55 +01:00

125 lines
3.9 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[project]
name = "arbiter-workspace"
version = "0.1.0"
description = "Arbiter (contract analysis module) + the compass_* engine packages (uv workspace root)"
readme = "README.md"
requires-python = ">=3.12"
authors = [
{ name = "Tobiasz Badura" }
]
# Root project intentionally has no dependencies — workspace members define their own.
dependencies = []
[tool.uv.workspace]
members = [
"apps/api",
"apps/workers",
"apps/mcp-server",
"packages/core",
"packages/schemas",
"packages/prompts",
"packages/agents",
"packages/llm-gateway",
"packages/retrieval",
"packages/ingestion",
"packages/evals",
"packages/jurisdictions",
"packages/analysis",
]
# apps/arbiter is an application with its own venv and requirements (a private
# dependency included), not a workspace member: adding it would pull that into uv.lock.
exclude = ["apps/arbiter"]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"ruff>=0.6",
"mypy>=1.11",
# Builds the PDF fixtures in the ingestion and analysis tests (BSD-3). PyMuPDF did
# that until L1, and keeping it for tests alone would keep AGPL in uv.lock.
"reportlab>=4.2",
]
[tool.uv.sources]
compass-core = { workspace = true }
compass-schemas = { workspace = true }
compass-prompts = { workspace = true }
compass-agents = { workspace = true }
compass-llm-gateway = { workspace = true }
compass-retrieval = { workspace = true }
compass-ingestion = { workspace = true }
compass-evals = { workspace = true }
compass-jurisdictions = { workspace = true }
compass-analysis = { workspace = true }
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = [
"apps/web",
"node_modules",
"dist",
".venv",
"supabase/.branches",
]
[tool.ruff.lint]
select = [
"E", "F", "W", # pycodestyle / pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"RUF", # ruff-specific
"ASYNC", # async correctness
"S", # bandit (security)
]
ignore = [
"E501", # line-length handled by formatter
"S101", # assert ok in tests
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "S105", "S106"]
"packages/evals/datasets/**" = ["E501"]
# Komentarz-dług w `lmstudio.py` jest cytatem ze specu i musi stać znak w znak
# (test tego pilnuje), a spec pisze „3×" znakiem mnożenia.
"packages/analysis/src/compass_analysis/lmstudio.py" = ["RUF003"]
"packages/analysis/tests/test_lmstudio.py" = ["RUF001"]
[tool.ruff.lint.isort]
# Workspace members are installed editable, so ruff would otherwise file them
# under third-party and merge them into the same import block as httpx or pytest.
known-first-party = [
"compass_agents",
"compass_analysis",
"compass_core",
"compass_evals",
"compass_ingestion",
"compass_jurisdictions",
"compass_llm_gateway",
"compass_prompts",
"compass_retrieval",
"compass_schemas",
]
[tool.pytest.ini_options]
markers = [
"eval: runs LLM-backed eval suite (requires API keys + costs money)",
"integration: requires real Supabase / Redis / Qdrant",
"rls: cross-tenant isolation tests",
]
asyncio_mode = "auto"
# apps/* carry no tests of their own here; apps/arbiter runs its suite from
# apps/arbiter/backend with its own venv, and collecting it from here ends in import errors.
testpaths = ["packages", "tests"]
# Every package carries its own tests/__init__.py, so the default "prepend" mode
# tries to import them all as one top-level `tests` package and the second one
# shadows the first. importlib names each module by its path below the package's
# `tests/` directory only, so it does NOT protect against the same relative path in
# two packages (tests.test_x twice: one file runs twice, the other never). Keep test
# module names unique across packages - tests/test_repo_hygiene.py enforces it.
addopts = "--import-mode=importlib"