Skip to content

add just --fmt pre-commit hook#10

Merged
syphar merged 2 commits intomainfrom
just-fmt
Feb 18, 2026
Merged

add just --fmt pre-commit hook#10
syphar merged 2 commits intomainfrom
just-fmt

Conversation

@syphar
Copy link
Member

@syphar syphar commented Feb 18, 2026

add just formatter pre-commit hook

https://just.systems/man/en/formatting-and-dumping-justfiles.html

the formatter output also confirms the editorconfig setting for 4 spaces.

@syphar syphar self-assigned this Feb 18, 2026
@syphar syphar changed the title just fmt add just --fmt pre-commit hook Feb 18, 2026
@syphar syphar marked this pull request as ready for review February 18, 2026 06:27
@syphar syphar requested a review from a team as a code owner February 18, 2026 06:27
main() {
for file in "$@";
do
just --unstable --fmt --justfile "${file}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and the --justfile option just works for modules as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's only the way to pass the filename.

( tested it)

@syphar syphar merged commit 36079f6 into main Feb 18, 2026
1 check passed
@syphar syphar deleted the just-fmt branch February 18, 2026 12:52
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