Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.77 KB

File metadata and controls

66 lines (46 loc) · 1.77 KB

Development Guide

Documentation for contributors to the Prebid Sales Agent codebase, maintained under Prebid.org.

Getting Started

git clone https://github.com/prebid/salesagent.git
cd salesagent
make setup

See Getting Started for prerequisites, manual setup, testing, and common operations.

Documentation

Key Resources

  • CLAUDE.md - Detailed development patterns and conventions
  • Tests - Test suite and examples
  • Source - Application source code

Quick Reference

Running Tests

./run_all_tests.sh ci     # Full suite: Docker + all 5 suites (DEFAULT)
./run_all_tests.sh quick  # No Docker: unit + integration + integration_v2
# Both modes produce JSON reports in test-results/<ddmmyy_HHmm>/

# Manual pytest
uv run pytest tests/unit/ -x
uv run pytest tests/integration/ -x

Code Quality

# Pre-commit hooks
pre-commit run --all-files

# Type checking
uv run mypy src/core/your_file.py --config-file=mypy.ini

Database Migrations

Migrations run automatically on startup. To run manually:

# Inside Docker
docker compose exec adcp-server python scripts/ops/migrate.py

# Or locally with uv
uv run python scripts/ops/migrate.py

# Create new migration
uv run alembic revision -m "description"