This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-ai.git


The following commit(s) were added to refs/heads/main by this push:
     new 020f99b  chore: introduce black for code format in github actions (#47)
020f99b is described below

commit 020f99bca4b36406923c96b25d6399f98f9005f3
Author: chenzihong <[email protected]>
AuthorDate: Thu Jun 6 19:05:47 2024 +0800

    chore: introduce black for code format in github actions (#47)
    
    * use black with SHA1
---
 .github/workflows/black.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml
new file mode 100644
index 0000000..6c123c7
--- /dev/null
+++ b/.github/workflows/black.yml
@@ -0,0 +1,17 @@
+name: "Black Code Formatter"
+
+on:
+  push:
+    branches:
+      - 'release-*'
+  pull_request:
+
+jobs:
+  lint:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: psf/black@3702ba224ecffbcec30af640c149f231d90aebdb
+        with:
+          options: "--check --diff --line-length 100"
+          src: "hugegraph-llm/src hugegraph-python-client/src"

Reply via email to