Skip to content

Automate Homebrew tap formula updates#48

Merged
faustodavid merged 1 commit into
mainfrom
feature/homebrew-tap-formula-ci
Jun 2, 2026
Merged

Automate Homebrew tap formula updates#48
faustodavid merged 1 commit into
mainfrom
feature/homebrew-tap-formula-ci

Conversation

@faustodavid
Copy link
Copy Markdown
Owner

@faustodavid faustodavid commented Jun 2, 2026

Summary

  • remove the duplicate checked-in Formula/smith.rb from this repo so the tap formula is the source of truth
  • add a Homebrew Tap Formula workflow that runs on pushed v* tags or manual dispatch and updates faustodavid/homebrew-tap/Formula/smith.rb
  • add a deterministic formula updater script plus unit coverage for tag/revision replacement, stale checks, version matching, and unsafe tag rejection
  • document the release flow and required HOMEBREW_TAP_TOKEN secret

Release safety

  • validates the release tag shape before using it in git refspecs
  • reads pyproject.toml from the tagged commit and rejects tag/version mismatches
  • resolves the tag revision and rejects mismatched manual revision overrides
  • runs ruby -c, brew audit --strict --formula, brew install --build-from-source, and brew test against a temporary local tap before pushing the tap update

Validation

  • make check -> 723 passed plus lint, format, mypy, targeted coverage, and skill quality
  • uv run --extra dev pytest tests/unit/test_update_homebrew_formula.py -q
  • uv run --extra dev ruff check scripts/update_homebrew_formula.py tests/unit/test_update_homebrew_formula.py
  • uv run --extra dev ruff format --check scripts/update_homebrew_formula.py tests/unit/test_update_homebrew_formula.py
  • workflow YAML parse check
  • updater --check path using pyproject.toml from v0.1.1

Tap note

Updated faustodavid/homebrew-tap separately so the live tap formula now pins v0.1.1 at commit c42aba12716518db8473536d15529302fbaf4482.

@faustodavid faustodavid merged commit 8cdc999 into main Jun 2, 2026
9 checks passed
@faustodavid faustodavid deleted the feature/homebrew-tap-formula-ci branch June 2, 2026 17:49
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.

1 participant