BobAnkh / LinuxBeginner

为Linux初学者整理的一系列常用命令和实用工具的常规用法。随时欢迎贡献!
https://bobankh.com/LinuxBeginner/
Apache License 2.0
6 stars 8 forks source link

[enhancement] Optimize yapf check #48

Open BobAnkh opened 4 years ago

BobAnkh commented 4 years ago

Is your feature request related to a problem? Please describe

Now the yapf only checks on schedule. It should check on push and pull request.

Ref:#37

Description of the new feature/enhancement

The yapf formatter workflow should format the python code and upload the diff as artifacts. Another workflow uses the artifacts to create a comment, telling the contributor to format or modify the code style.

Proposed technical implementation details (optional)

Additional context

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label enhancement to this issue, with a confidence of 1.00. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.