- Python
- TypeScript
Set up the python development environment using Recommended once per clone:
uv:Copy
git clone https://github.com/ArchiveBox/abxbus && cd abxbus
# Create virtual environment with Python 3.12
uv venv --python 3.12
# Activate virtual environment (varies by OS)
source .venv/bin/activate # On Unix/macOS
# or
.venv\Scripts\activate # On Windows
# Install dependencies
uv sync --dev --all-extras
Copy
prek install # install pre-commit hooks
prek run --all-files # run pre-commit hooks on all files manually
Copy
# Run linter & type checker
uv run ruff check --fix
uv run ruff format
uv run pyright
# Run all tests
uv run pytest -vxs --full-trace tests/
# Run specific test file
uv run pytest tests/test_eventbus.py
# Run Python perf test suite
uv run pytest tests/test_eventbus_performance.py -vxs
# Run the entire lint+test+examples+perf suite for both python and ts
./test.sh
For AbxBus-TS development see theabxbus-ts/README.md# Developmentsection.
Copy
git clone https://github.com/ArchiveBox/abxbus abxbus && cd abxbus
cd ./abxbus-ts
pnpm install
prek install # install pre-commit hooks
prek run --all-files # run pre-commit hooks on all files manually
pnpm lint
pnpm test