qref defines the Quantum Resource Estimation Format and provides validation, schema tooling, docs, and rendering utilities.
- Python 3.10-3.12
poetry- Graphviz on
PATHfor rendering-related workflows
- Install default environment:
poetry install - Install docs environment:
poetry install --with docs - Lint/hooks:
pre-commit run -a - Unit tests:
poetry run pytest --json-report --json-report-file=pytest_report.json --json-report-omit collectors log streams --cov src --cov-report term --cov-report html - Type checks:
MYPYPATH=src poetry run mypy src --install-types --non-interactive - Docs build:
poetry run mkdocs build
- Run
pre-commit run -afor normal code changes. - Run the pytest command for library or schema changes.
- Run the mypy command when changing typed library code.
- Run
poetry run mkdocs buildwhen touching docs ormkdocs.yml.
- Keep GitHub Actions and release automation aligned with the existing GitHub workflow model.
- Schema or validation changes can affect downstream consumers broadly.
- Graphviz-dependent rendering paths may fail without the system binary.
- This repo uses GitHub Actions and an open-source-style workflow rather than the internal GitLab conventions used by most other repos here.
- Pre-commit uses
isort,black, andflake8, not Ruff. - Preserve compatibility expectations for the QREF format unless the task explicitly changes schema behavior.