Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ rust-project.json
# Node.js / front-end examples.
node_modules/

# Python bytecode and virtual environments (python/ SDK sub-projects).
__pycache__/
*.py[cod]
*.pyo
.venv/
.pytest_cache/
*.egg-info/
dist/

# Temporary file created by scripts/bump-version.py during atomic Cargo.toml rewrite.
Cargo.toml.bak

# IDE / OS noise.
.DS_Store
.idea/
Expand Down
4 changes: 2 additions & 2 deletions scripts/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
commit-msg hook: strips AI-injected "Co-Authored-By: Claude ..." trailers
and trims trailing blank lines from the commit message.

Works on macOS, Linux, and Windows (Git Bash / WSL).
Install once via: just install-hooks (or: make install-hooks)
Works on macOS, Linux, and Windows (Git Bash / WSL / PowerShell).
Install once via: just install-hooks
"""

from __future__ import annotations
Expand Down
8 changes: 4 additions & 4 deletions scripts/pre-commit
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
"""
Pre-commit hook: mirrors the `just ci` / `make ci` gate.
Pre-commit hook: mirrors the `just ci` gate.
version-sync → fmt-check → clippy → test → doc

Works on macOS, Linux, and Windows (Git Bash / WSL).
Install once via: just install-hooks (or: make install-hooks)
Works on macOS, Linux, and Windows (Git Bash / WSL / PowerShell).
Install once via: just install-hooks
"""

from __future__ import annotations
Expand Down Expand Up @@ -75,7 +75,7 @@ def check_version_sync(root: Path) -> None:
f"error: VERSION ({file_ver}) and Cargo.toml ({cargo_ver}) are out of sync",
file=sys.stderr,
)
print(f"fix: scripts/bump-version.sh {cargo_ver}", file=sys.stderr)
print(f"fix: python3 scripts/bump-version.py {cargo_ver}", file=sys.stderr)
sys.exit(1)


Expand Down
Loading