Utility scripts for ZAPI development and maintenance.
File: pre-commit.sh
Runs Ruff linting and formatting checks before allowing a commit.
# Make it executable (one-time)
chmod +x scripts/pre-commit.sh
# Run manually
./scripts/pre-commit.sh- ✅ Ruff linting (with auto-fix suggestions)
- ✅ Ruff formatting (with format suggestions)
- ❌ Exits with error if checks fail
For automatic checks on every commit:
pip install pre-commit
pre-commit installThis uses .pre-commit-config.yaml and runs automatically on git commit.