Skip to content

Freshness assets, commit-based metrics, and CI hygiene#31

Merged
buddingengineers12345 merged 1 commit intomainfrom
feat/freshness-assets-commit-metrics-and-ci-hygiene
Apr 8, 2026
Merged

Freshness assets, commit-based metrics, and CI hygiene#31
buddingengineers12345 merged 1 commit intomainfrom
feat/freshness-assets-commit-metrics-and-ci-hygiene

Conversation

@buddingengineers12345
Copy link
Copy Markdown
Owner

Summary

This PR delivers the file freshness improvements and related CI/test fixes.

Freshness

  • Relocate file_freshness.json, freshness_summary.json, and freshness_ignore.json under assets/.
  • Extend repo_file_freshness.py with --metric commits (default) and --metric days (2/4 day bands), plus --green-max-commits / --yellow-max-commits.
  • Workflow stages the new paths and passes explicit commit thresholds.
  • assets/freshness_ignore.json lists generated JSON so they classify as blue.

CI / quality

  • detect-secrets: exclude assets/file_freshness.json; adjust pytest fixtures doc example to avoid false positives.
  • Template tests: add --vcs-ref HEAD where missing; ignore files.zip and temp in fixture copytree.
  • uv.lock synced with pyproject.toml version; temp/justfile whitespace.
  • just audit: use uv run --with pip-audit for reliable local runs.

Verification

  • just ci passes locally.

Made with Cursor

- Move freshness JSON artifacts under assets/; wire workflow, script defaults, and tests
- Add --metric commits|days, commit-count thresholds, and 2/4-day day mode
- Ignore generated freshness JSON in detect-secrets; exclude from false positives
- Copier tests: use --vcs-ref HEAD; harden copytree ignores for local temp/files.zip
- Pytest fixtures doc: rename example env vars to satisfy secret scanner
- Sync uv.lock with pyproject version; fix temp/justfile whitespace
- just audit: run pip-audit via uv run --with pip-audit for reliable venv setup

Made-with: Cursor
@github-actions github-actions bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file ci scripts template tests build labels Apr 8, 2026
@buddingengineers12345 buddingengineers12345 merged commit 1cb1ac7 into main Apr 8, 2026
9 checks passed
@buddingengineers12345 buddingengineers12345 deleted the feat/freshness-assets-commit-metrics-and-ci-hygiene branch April 9, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build ci dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation scripts template tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants