Repository navigation
✨ feat: add PyPI-backed oxfmt pre-commit mirror - #1
Merged
Merged
Conversation
Adapt the existing ShigureLab yamlfmt/typos mirror layout and upstream oxfmt hook defaults. Co-authored-by: Codex <[email protected]>
SigureMo
approved these changes
Sep 30, 2026
2 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Requested in redai-studio/Relax#392 comment. This PR creates the Python-ecosystem hook only; Relax is intentionally unchanged.
pyproject.toml,.pre-commit-hooks.yaml,mirror.py, README, Mirror/Release workflows. Preserve the copied MIT license attribution.oxfmt-mirrorto the existing PyPIoxfmt==0.69.0. No new binary wrapper, Node/npm dependency, or PyPI publishing workflow.python.The PyPI package is an unofficial repackaging by dhruvkb/oxc-py. Its macOS ARM64 executable was verified byte-for-byte against the official Oxc release containing oxfmt 0.69.0. We do not use
oxfmt-bin, whose package version 1.81.0 corresponds to the older formatter 0.66.0.Validation
Validated commit
914802aa346129657ae434bb5319225f8f1f78c2on macOS ARM64:git diff main...HEAD --checkandpre-commit validate-manifest .pre-commit-hooks.yamlpassed.PRE_COMMIT_HOMEinstallations from both local checkout and public GitHub URL, with nonodeon PATH, passed with pre-commit 4.6.2 / Python 3.14 and the advertised minimum 2.9.2 / Python 3.9.pre-commit install --install-hooks; JS, JSX, TS and TSX fixtures were formatted (expected first-run failure because files changed), then passed unchanged on the second run. Python/JSON fixtures stayed untouched and were skipped.args: [--check]correctly reported unformatted input without rewriting it.oxfmt==0.69.0andoxfmt-mirror==0.69.0; installed executable reportedVersion: 0.69.0. Executable SHA256:ef074c281d0e4552b24b9e53a2848804cae9a494db7d7d67839645bd570b20a7.uv run --script mirror.pyagainst live PyPI performed a clean no-op.Reproduce public-repo installation now by using this config in a temporary Git repository:
Then add an unformatted JS/TS file to Git and run
pre-commit install --install-hooks, followed bypre-commit run --all-filestwice. The first run should format it; the second should pass.Readiness
v0.69.0tag is not published yet. Maintainer review/merge and an initialv0.69.0tag are still needed. Nothing was pushed tomain, merged, or released to PyPI.PRE_COMMIT_HOOK_AUTO_UPDATE_TOKENwith repository write access. No secrets, organization permissions, or external services were changed.apps_*releases, whereas newer formatter releases useoxfmt_v*. This repo tracks actual PyPI availability; resolving that upstream packaging lag is outside this PR.@SigureMo please review the new mirror. Relax's hook migration remains deferred.