Skip to content

Test/combined open prs#695

Closed
planetf1 wants to merge 13 commits intogenerative-computing:mainfrom
planetf1:test/combined-open-prs
Closed

Test/combined open prs#695
planetf1 wants to merge 13 commits intogenerative-computing:mainfrom
planetf1:test/combined-open-prs

Conversation

@planetf1
Copy link
Contributor

@planetf1 planetf1 commented Mar 18, 2026

Misc PR

Type of PR

  • Bug Fix
  • New Feature
  • Documentation
  • Other

Description

Changes

Bug fix:

  • mellea/backends/huggingface.py: token count extraction was gated behind span is not None or metrics_enabled, so mot.usage was never populated in plain (non-telemetry) runs. Extraction is now unconditional — usage is a standard mot field, not a telemetry concern.

Documentation:

  • README condensed to elevator pitch
  • Contributing guide linked
  • Landing page, badges, grammar and wording fixes

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

planetf1 and others added 12 commits March 18, 2026 18:06
Co-authored-by: Paul Schweigert <paul@paulschweigert.com>
Co-authored-by: Paul Schweigert <paul@paulschweigert.com>
Add a hard-fail docstring quality gate to the docs-publish workflow:
- New 'Docstring quality gate' step runs --quality --fail-on-quality
  --threshold 100; fails if any quality issue is found or coverage
  drops below 100% (both currently pass in CI)
- Existing audit_coverage step (soft-fail, threshold 80) retained for
  the summary coverage metric

Add typeddict_mismatch checks to audit_coverage.py:
- typeddict_phantom: Attributes: documents a field not declared in the TypedDict
- typeddict_undocumented: declared field absent from Attributes: section
- Mirrors the existing param_mismatch logic for functions

Pre-commit: enable --fail-on-quality on the manual-stage hook (CI is
the hard gate; hook remains stages: [manual] as docs must be pre-built).

Update CONTRIBUTING.md and docs/docs/guide/CONTRIBUTING.md with TypedDict
docstring requirements and the two new audit check kinds.
@github-actions
Copy link
Contributor

The PR description has been updated. Please fill out the template for your PR to be reviewed.

@mergify
Copy link

mergify bot commented Mar 18, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 Enforce conventional commit

This rule is failing.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|release)(?:\(.+\))?:

@planetf1 planetf1 force-pushed the test/combined-open-prs branch from 49d4fe6 to f1f909d Compare March 18, 2026 18:26
…puting#694)

Token count extraction in _post_process_async was gated behind
`span is not None or metrics_enabled`, so mot.usage was never
populated in plain (non-telemetry) runs. Now extracted unconditionally
— usage is a standard mot field, not a telemetry concern.
@planetf1 planetf1 force-pushed the test/combined-open-prs branch from f1f909d to d777cfc Compare March 18, 2026 18:42
@planetf1 planetf1 closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: HuggingFace backend mot.usage always None without telemetry enabled

1 participant