Python Formatter检查
使用Black作为格式器来验证代码格式(Python)的操作。
验证将应用于新的或修改的代码(当前PR中所做的更改)。
输入项
branch
必需要评估的分支或标签的名称。默认为"staging" 。
用法示例
uses : lendingfront/python-formatter-check@main
with :
branch : ' main '
注意:使用此操作检查格式之前,请先克隆存储库
- name : Checkout branch
uses : actions/checkout@v2
- name : Python Formatter Check
uses : lendingfront/python-formatter-check@main
with :
branch : ' main
评论0
最新资源