From 5872abf69663c147e3148804b1e06e173718baae Mon Sep 17 00:00:00 2001 From: Deniz Ulker <156104354+uelkerd@users.noreply.github.com> Date: Mon, 22 Sep 2025 23:22:55 +0300 Subject: [PATCH 1/3] chore: add standardized git commit message template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add .gitmessage.txt to enforce consistent commit message formatting across the project. Template includes: - Standard commit types (feat, fix, chore, refactor, docs, test) - Format guidelines and examples - Single-purpose commit enforcement rules - Character limits and best practices Supports fortress development workflow and prevents mixed-concern commits. Extracted from monster PR #171 as part of systematic decomposition. Tracked in issue #174. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitmessage.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitmessage.txt diff --git a/.gitmessage.txt b/.gitmessage.txt new file mode 100644 index 000000000..8f431523e --- /dev/null +++ b/.gitmessage.txt @@ -0,0 +1,25 @@ +# SAMO-DL Commit Message Template +# +# Format: (): +# +# Types: +# feat: A new feature +# fix: A bug fix +# chore: Changes to the build process or auxiliary tools/libraries +# refactor: A code change that neither fixes a bug nor adds a feature +# docs: Documentation only changes +# test: Adding missing tests or correcting existing tests +# +# Rules: +# - ONE purpose per commit (no "and", "also", "plus") +# - Subject line < 50 characters +# - Use imperative mood ("Add" not "Added") +# - No period at end of subject line +# +# Examples: +# feat: add user authentication system +# fix: resolve memory leak in model loading +# chore: update dependency versions +# refactor: simplify rate limiter logic +# docs: update API documentation +# test: add unit tests for validation functions From 49a8b4559f8465553e43b82a76519a87c327d723 Mon Sep 17 00:00:00 2001 From: Deniz Ulker <156104354+uelkerd@users.noreply.github.com> Date: Mon, 22 Sep 2025 23:44:45 +0300 Subject: [PATCH 2/3] fix: align commit message template with CONTRIBUTING.md - Add missing 'style' commit type to match CONTRIBUTING.md - Reorder commit types to match CONTRIBUTING.md order - Add scope examples to demonstrate optional scope field usage - Ensure consistency across project documentation and tools --- .gitmessage.txt | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitmessage.txt b/.gitmessage.txt index 8f431523e..7cd9375f7 100644 --- a/.gitmessage.txt +++ b/.gitmessage.txt @@ -5,10 +5,11 @@ # Types: # feat: A new feature # fix: A bug fix -# chore: Changes to the build process or auxiliary tools/libraries -# refactor: A code change that neither fixes a bug nor adds a feature -# docs: Documentation only changes -# test: Adding missing tests or correcting existing tests +# docs: Documentation changes +# style: Code style changes (formatting, etc.) +# refactor: Code refactoring +# test: Adding or updating tests +# chore: Maintenance tasks # # Rules: # - ONE purpose per commit (no "and", "also", "plus") @@ -17,9 +18,9 @@ # - No period at end of subject line # # Examples: -# feat: add user authentication system -# fix: resolve memory leak in model loading -# chore: update dependency versions -# refactor: simplify rate limiter logic -# docs: update API documentation -# test: add unit tests for validation functions +# feat(auth): add user authentication system +# fix(models): resolve memory leak in model loading +# chore(deps): update dependency versions +# refactor(limiter): simplify rate limiter logic +# docs(api): update API documentation +# test(validation): add unit tests for validation functions From 69ab78ecc073f13f12b080dd954414b4125f6f40 Mon Sep 17 00:00:00 2001 From: Deniz Ulker <156104354+uelkerd@users.noreply.github.com> Date: Mon, 22 Sep 2025 23:46:05 +0300 Subject: [PATCH 3/3] feat(template): enhance commit message template with Conventional Commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add quick setup instructions for git config - Clarify optional scope and breaking-change marker in format - Expand commit types to include perf/build/ci/revert - Separate chore vs build for better clarity - Tighten rules with ≤50-char subject and ~72-char body wrapping - Add footer reference guidelines for issues/PRs - Expand examples to include scope, breaking changes, and references - Align with Conventional Commits standard for better adoption --- .gitmessage.txt | 47 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/.gitmessage.txt b/.gitmessage.txt index 7cd9375f7..4b97b59d0 100644 --- a/.gitmessage.txt +++ b/.gitmessage.txt @@ -1,26 +1,47 @@ # SAMO-DL Commit Message Template # -# Format: (): +# Quick setup: +# git config commit.template .gitmessage.txt +# # To make it global: git config --global commit.template "$(pwd)/.gitmessage.txt" +# +# Format: ()!: +# (scope is optional; add "!" for breaking changes) +# Body: explain what and why, wrapped at ~72 chars per line +# Footer: references and BREAKING CHANGE notes # # Types: # feat: A new feature # fix: A bug fix -# docs: Documentation changes -# style: Code style changes (formatting, etc.) -# refactor: Code refactoring -# test: Adding or updating tests -# chore: Maintenance tasks +# docs: Documentation only changes +# style: Formatting, whitespace, missing semicolons, no code change +# refactor: Code change that neither fixes a bug nor adds a feature +# perf: A code change that improves performance +# test: Adding missing tests or correcting existing tests +# build: Changes to build system or external dependencies +# ci: Changes to CI configuration files and scripts +# chore: Other changes that don't modify src or test files +# revert: Reverts a previous commit # # Rules: # - ONE purpose per commit (no "and", "also", "plus") -# - Subject line < 50 characters +# - Subject line ≤ 50 characters # - Use imperative mood ("Add" not "Added") # - No period at end of subject line +# - Wrap body at ~72 characters per line +# - Reference issues/PRs in footer (e.g., "Closes #123") +# - Use "BREAKING CHANGE: ..." in footer for breaking changes # # Examples: -# feat(auth): add user authentication system -# fix(models): resolve memory leak in model loading -# chore(deps): update dependency versions -# refactor(limiter): simplify rate limiter logic -# docs(api): update API documentation -# test(validation): add unit tests for validation functions +# feat(auth): add login with email magic links +# fix(loader): resolve memory leak in model loading +# perf(infer): cache tokenizer to reduce setup time +# refactor(rate-limit): simplify token bucket logic +# docs(api): update inference usage examples +# style: run formatter across repo +# build: bump torch to 2.4.x +# ci: parallelize test matrix +# revert: revert "feat(auth): add magic links" +# feat(core)!: switch default precision to bfloat16 +# BREAKING CHANGE: default precision is now bfloat16; set +# SAMO_PRECISION=float32 to keep previous behavior. +# Closes #174