Skip to content

Commit dbcad5f

Browse files
committed
merged
2 parents 5bc64c1 + 09d09b5 commit dbcad5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+4106
-1229
lines changed

.asf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ github:
5353
# (for non-committer): assign/edit/close issues & PR, without write access to the code
5454
collaborators:
5555
- ChenZiHong-Gavin
56-
- MrJs133
56+
- weijinglin
5757
- HJ-Young
5858
- afterimagex
5959
- returnToInnocence

.github/pull.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "1"
2+
rules:
3+
- base: main
4+
upstream: apache/main
5+
mergeMethod: rebase
6+
assignees:
7+
- imbajin
8+
reviewers:
9+
- imbajin
10+
conflictReviewers:
11+
- imbajin
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: "Auto PR Commenter"
19+
20+
on:
21+
pull_request_target:
22+
types: [opened]
23+
24+
jobs:
25+
add-review-comment:
26+
runs-on: ubuntu-latest
27+
permissions:
28+
pull-requests: write
29+
steps:
30+
- name: Add review comment
31+
uses: peter-evans/create-or-update-comment@v4
32+
with:
33+
issue-number: ${{ github.event.pull_request.number }}
34+
body: |
35+
@codecov-ai-reviewer review

.github/workflows/black.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO: replace by ruff & mypy soon
12
name: "Black Code Formatter"
23

34
on:

.github/workflows/hugegraph-python-client.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,17 @@ jobs:
4444
restore-keys: |
4545
${{ runner.os }}-uv-${{ matrix.python-version }}-
4646
47-
# TODO: use pyproject.toml later
48-
- name: Install dependencies
47+
- name: Install dependencies with uv sync
4948
run: |
50-
uv venv && source .venv/bin/activate
51-
uv pip install pytest
52-
uv pip install ./hugegraph-python-client
49+
uv sync --extra python-client --extra dev
5350
5451
- name: Test example
5552
run: |
56-
ls -al && source .venv/bin/activate
57-
export PYTHONPATH=$(pwd)/hugegraph-python-client/src
58-
echo ${PYTHONPATH}
59-
python hugegraph-python-client/src/pyhugegraph/example/hugegraph_example.py
53+
ls -al
54+
export PYTHONPATH=$(pwd)/hugegraph-python-client/src && echo ${PYTHONPATH}
55+
uv run python hugegraph-python-client/src/pyhugegraph/example/hugegraph_example.py
6056
6157
- name: Test with pytest
6258
run: |
63-
ls -al ../ && source ../.venv/bin/activate
64-
pytest
59+
uv run pytest
6560
working-directory: hugegraph-python-client

.github/workflows/pylint.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO: replace by ruff & mypy soon
12
name: "Pylint"
23

34
on:
@@ -41,18 +42,12 @@ jobs:
4142
4243
- name: Install dependencies
4344
run: |
44-
uv venv && source .venv/bin/activate
45-
uv pip install pylint pytest
46-
uv pip install ./hugegraph-python-client
47-
uv pip install ./hugegraph-llm
48-
uv pip install ./hugegraph-ml
45+
uv sync --extra all --extra dev
4946
5047
- name: Check DGL version
5148
run: |
52-
source .venv/bin/activate
53-
python -c "import dgl; print(dgl.__version__)"
49+
uv run python -c "import dgl; print(dgl.__version__)"
5450
5551
- name: Analysing the code with pylint
5652
run: |
57-
source .venv/bin/activate
58-
bash ./style/code_format_and_analysis.sh -p
53+
uv run bash ./style/code_format_and_analysis.sh -p

.github/workflows/sync.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Upstream Sync
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
schedule:
8+
- cron: "0 */3 * * *" # every 3 hours
9+
workflow_dispatch:
10+
11+
jobs:
12+
sync_latest_from_upstream:
13+
name: Sync latest commits from upstream repo
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event.repository.fork }}
16+
17+
steps:
18+
# Step 1: run a standard checkout action
19+
- name: Checkout target repo
20+
uses: actions/checkout@v4
21+
22+
# Step 2: run the sync action
23+
- name: Sync upstream changes
24+
id: sync
25+
uses: aormsby/[email protected]
26+
with:
27+
upstream_sync_repo: apache/incubator-hugegraph-ai
28+
upstream_sync_branch: main
29+
target_sync_branch: main
30+
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
31+
32+
# Set test_mode true to run tests instead of the true action!!
33+
test_mode: false
34+
35+
- name: Sync check
36+
if: failure()
37+
run: |
38+
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the detailed tutorial for instructions: https://github.com/Yidadaa/ChatGPT-Next-Web#enable-automatic-updates"
39+
exit 1

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ ipython_config.py
115115
# https://pdm.fming.dev/#use-with-ide
116116
.pdm.toml
117117

118+
# uv
119+
# uv.lock contains resolved dependencies and is generally recommended to include in version control
120+
# for reproducible builds, but can be excluded if you prefer to resolve dependencies fresh
121+
uv.lock
122+
# Local UV configuration file (for mirror settings)
123+
uv.toml
124+
118125
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
119126
__pypackages__/
120127

@@ -128,6 +135,37 @@ celerybeat.pid
128135
# prompt config
129136
config_prompt.yaml*
130137

138+
# AI-IDE prompt files (generated from basic-introduction.md)
139+
140+
# Claude Projects
141+
CLAUDE.md
142+
CLAUDE_*.md
143+
144+
# Gemini/Google
145+
GEMINI.md
146+
GEMINI_*.md
147+
gemini.md
148+
gemini_*.md
149+
150+
# GitHub Copilot / Microsoft
151+
copilot-instructions.md
152+
.copilot-instructions.md
153+
154+
# Cursor IDE
155+
cursor-instructions.md
156+
.cursor-instructions.md
157+
cursor.md
158+
159+
# Windsurf/Codeium
160+
windsurf.md
161+
windsurf-instructions.md
162+
codeium.md
163+
codeium-instructions.md
164+
165+
# Other AI coding assistants
166+
.ai-instructions.md
167+
*.ai-prompt.md
168+
131169
# Environments
132170
.env
133171
.env.bak
@@ -147,6 +185,8 @@ venv.bak/
147185
# Rope project settings
148186
.ropeproject
149187

188+
.pre-commit-config.yaml
189+
150190
# mkdocs documentation
151191
/site
152192

0 commit comments

Comments
 (0)