From 463b43ad4b21df2beccfd18dc869fc74bc15f504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Sun, 15 Mar 2026 16:11:59 -0700 Subject: [PATCH 1/2] docs: add before committing section to dev guide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docs/development.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/development.md b/docs/development.md index ad3f5b5..b4f6ca9 100644 --- a/docs/development.md +++ b/docs/development.md @@ -33,6 +33,14 @@ curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads Then run the consuming project's recipes to verify behavior. +## Before committing + +Run the formatting check to ensure justfiles are properly formatted: + +```bash +just --justfile just.just --working-directory . fmt-check +``` + ## Branching All changes should be developed on feature branches. Create a branch from `main` From c5733732b05d81d9db3655cc369cbb190b12836f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Sun, 15 Mar 2026 16:12:43 -0700 Subject: [PATCH 2/2] feat: add justfile with test and ready recipes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docs/development.md | 4 ++-- justfile | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 justfile diff --git a/docs/development.md b/docs/development.md index b4f6ca9..72acb8f 100644 --- a/docs/development.md +++ b/docs/development.md @@ -35,10 +35,10 @@ Then run the consuming project's recipes to verify behavior. ## Before committing -Run the formatting check to ensure justfiles are properly formatted: +Run `just ready` before committing to ensure justfiles are properly formatted: ```bash -just --justfile just.just --working-directory . fmt-check +just ready # fmt ``` ## Branching diff --git a/justfile b/justfile new file mode 100644 index 0000000..4d6321d --- /dev/null +++ b/justfile @@ -0,0 +1,9 @@ +# Justfile formatting recipes run against local recipe files. + +# Check justfile formatting +test: + just --justfile just.just --working-directory . fmt-check + +# Format and lint before committing +ready: + just --justfile just.just --working-directory . fmt