python-genbadge icon indicating copy to clipboard operation
python-genbadge copied to clipboard

Add a -f/--format option to change the format of the badges

Open smarie opened this issue 4 years ago • 3 comments

smarie avatar May 11 '21 09:05 smarie

I see several alternatives for the "tests" badge

  • by default 'auto' format: display the number of tests only if 100% success, otherwise display xxx/yyy
  • alternate format 1: display the success percentage

smarie avatar May 17 '21 09:05 smarie

For the coverage badge is could be a format string for the coverage float, such as '%.2f' ? See #16

smarie avatar Jun 22 '21 13:06 smarie

Hi! I would also find it useful to be able to modify the title of the badge. Something along the lines of genbadge [flake8|coverage|tests] --title "Alternative Title".

hejcman avatar Aug 03 '21 11:08 hejcman