Skip to content

Implement pre-commit workflow#509

Merged
mvadari merged 6 commits intoXRPLF:masterfrom
mathbunnyru:run_precommit
Apr 2, 2026
Merged

Implement pre-commit workflow#509
mvadari merged 6 commits intoXRPLF:masterfrom
mathbunnyru:run_precommit

Conversation

@mathbunnyru
Copy link
Copy Markdown
Contributor

@mathbunnyru mathbunnyru commented Apr 1, 2026

High Level Overview of Change

I use pre-commit reusable workflow which works well for rippled and clio, update existing hooks and fix existing problems.

Previous approach didn't always work well and was out-of-date
The new one allows to implement new pre-commit hooks only by adding them to .pre-commit-hooks.yaml and there is no need to have something specialized for prettier.

The name of required check will have to be changed in GitHub settings (but I have no permissions here).

Context of Change

Type of Change

  • New XLS Draft
  • XLS Update (changes to an existing XLS)
  • XLS Status Change (e.g., Draft → Final, Draft → Stagnant)
  • Process/Meta (changes to CONTRIBUTING.md, XLS-1, templates, etc.)
  • Infrastructure (CI, workflows, scripts, website)
  • Documentation (README updates, typo fixes)

Comment thread .pre-commit-config.yaml Outdated
@mathbunnyru mathbunnyru requested a review from mvadari April 1, 2026 16:51
@mvadari mvadari enabled auto-merge (squash) April 2, 2026 17:01
auto-merge was automatically disabled April 2, 2026 17:22

Head branch was pushed to by a user without write access

@mathbunnyru mathbunnyru force-pushed the run_precommit branch 2 times, most recently from e1bcd30 to 2614438 Compare April 2, 2026 17:28
@mvadari mvadari enabled auto-merge (squash) April 2, 2026 17:42
@mvadari mvadari merged commit 24abfef into XRPLF:master Apr 2, 2026
4 of 5 checks passed
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.

2 participants