incubator-hugegraph-ai icon indicating copy to clipboard operation
incubator-hugegraph-ai copied to clipboard

[Question] A question about introducing black for code format

Open ChenZiHong-Gavin opened this issue 9 months ago • 6 comments

Problem Type (问题类型)

configs (配置项 / 文档相关)

Before submit

  • [X] I had searched in the issues and found no similar issues.

Environment (环境信息)

  • Server Version: 1.x.x
  • Toolchain Version: 1.x.x
  • Data Size: xx vertices, xx edges >

Your Question (问题描述)

I am thinking about introducing BLACK for code check but still confused about the process.

I also noticed that there's a style script already using BLACK, refer: https://github.com/apache/incubator-hugegraph-ai/blob/main/style/code_format_and_analysis.sh

This script is used in the pylint.yml workflow, but only the pylint functionality is enabled. Should I create a new workflow for using BLACK, following the structure of pylint.yml, or should I modify pylint.yml to make it capable of performing code formatting tasks as well?

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

ChenZiHong-Gavin avatar May 29 '24 07:05 ChenZiHong-Gavin