chore:add git commit msg and branch name in pre-commit and modify org (#1)

* chore: add git commit msg and branch name in pre-commit

* docs: modify org to alibaba

* ci: mac build with make
This commit is contained in:
Cuiys 2025-12-30 15:39:05 +08:00 committed by GitHub
parent 211d3806c8
commit 220a9aba11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 46 additions and 9 deletions

View File

@ -69,6 +69,12 @@ jobs:
run: |
cd "$CLEAN_WORKSPACE"
pip install --upgrade pip pytest pytest-cov ruff
NPROC=$(nproc 2>/dev/null || echo $(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 2))
echo "ParallelGroup: Using $NPROC parallel jobs for build"
CMAKE_GENERATOR="Unix Makefiles" \
CMAKE_BUILD_PARALLEL_LEVEL="$NPROC" \
pip install -v .
shell: bash

View File

@ -28,3 +28,35 @@ repos:
- id: gitleaks
name: Detect hardcoded secrets (gitleaks)
description: Scans staged files for secrets using gitleaks rules
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: [
--types, feat,fix,docs,style,refactor,test,chore,perf,ci,build,revert,
--scope-optional
]
- repo: local
hooks:
- id: branch-name-check
name: Check branch name format
entry: >-
bash -c '
branch=$(git symbolic-ref --short HEAD);
pattern="^(feat|fix|docs|refactor|test|chore)/[a-z0-9-]+$";
if [[ $branch =~ $pattern ]]; then
exit 0;
else
echo "Invalid branch name: $branch";
echo "Must match: <type>/<lower-case-hyphen-separated>";
echo "Examples: feat/user-api, fix/header-bug, chore/update-deps";
exit 1;
fi
'
language: system
stages: [ pre-push ]

View File

@ -96,7 +96,7 @@ CMAKE_BUILD_TYPE=Debug CMAKE_GENERATOR="Unix Makefiles" pip install -v .
## Need Help
- Browse [existing issues](https://github.com/graphscope/zvec/issues)
- Browse [existing issues](https://github.com/alibaba/zvec/issues)
- For sensitive/security issues: email `zvec@alibaba-inc.com`
---

View File

@ -6,10 +6,9 @@
</h1>
<p align="center">
<a href="https://codecov.io/github/GraphScope/zvec" style="text-decoration: none;"><img src="https://codecov.io/github/GraphScope/zvec/graph/badge.svg?token=PN16Q9PSZX" alt="Code Coverage"/></a>
<a href="https://github.com/GraphScope/zvec/actions" style="text-decoration:none;"><img src="https://github.com/GraphScope/zvec/actions/workflows/linux_x64_docker_ci.yml/badge.svg" alt="Linux x64 CI"/></a>
<a href="https://github.com/GraphScope/zvec/releases" style="text-decoration: none;"><img src="https://img.shields.io/github/v/release/GraphScope/zvec" alt="Latest Release"/></a>
<a href="https://github.com/GraphScope/zvec/blob/main/LICENSE" style="text-decoration: none;"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"/></a>
<a href="https://github.com/alibaba/zvec/actions" style="text-decoration:none;"><img src="https://github.com/alibaba/zvec/actions/workflows/linux_x64_docker_ci.yml/badge.svg?branch=main" alt="Linux x64 CI"/></a>
<a href="https://github.com/alibaba/zvec/releases" style="text-decoration: none;"><img src="https://img.shields.io/github/v/release/alibaba/zvec" alt="Latest Release"/></a>
<a href="https://github.com/alibaba/zvec/blob/main/LICENSE" style="text-decoration: none;"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"/></a>
</p>
# Zvec

View File

@ -39,9 +39,9 @@ dependencies = [
]
[project.urls]
Homepage = "https://github.com/graphscope/zvec"
Repository = "https://github.com/graphscope/zvec"
"Bug Tracker" = "https://github.com/graphscope/zvec/issues"
Homepage = "https://github.com/alibaba/zvec"
Repository = "https://github.com/alibaba/zvec"
"Bug Tracker" = "https://github.com/alibaba/zvec/issues"
"Documentation" = "https://zvec.org"
[project.optional-dependencies]

View File

@ -34,7 +34,7 @@ test.parquet
### Preparing Environment
Clone code and init:
```bash
$ git clone git@github.com:GraphScope/zvec.git
$ git clone git@github.com:alibaba/zvec.git
$ cd zvec
$ git submodule update --init
```