Pylint badge in gitlab

后端 未结 3 940
一个人的身影
一个人的身影 2021-01-31 05:55

Gitlab has functionality to generade badges about build status and coverage percentage.
Is it possible to create custom badge to display Pylint results? Or just display this

3条回答
  •  隐瞒了意图╮
    2021-01-31 06:56

    If you don't want to use the README, gitlab pages, anybadge or dropbox you can use https://img.shields.io/badge/lint%20score-$score-blue.svg to 'create' a badge (which is just an URL) and change the badge image URL via the gitlab API.

    Details and the lint stage of my .gitlab-ci.yml

提交回复
热议问题