Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Contributing

Setup

git clone https://github.com/QuantEcon/benchmark.translate-zh-cn.git
cd benchmark.translate-zh-cn
uv sync --extra dev

Running Tests

uv run pytest tests/ -v

All tests should pass before submitting a PR.

Code Style

We use ruff for linting and formatting:

uv run ruff check src/ tests/
uv run ruff format src/ tests/

Project Structure

See Architecture for the full module map.

Adding a New Command

  1. Create src/qebench/commands/yourcommand.py with a function

  2. Register it in src/qebench/cli.py via app.command()

  3. Add tests in tests/test_yourcommand.py

  4. Document in docs/user/cli-reference.md

Adding Data Entries

Use qebench add for interactive entry creation. For bulk imports, write a script in scripts/ following the pattern in scripts/seed_from_glossary.py.

Branch Workflow