python-genbadge
python-genbadge copied to clipboard
Add a -f/--format option to change the format of the badges
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
For the coverage badge is could be a format string for the coverage float, such as '%.2f' ? See #16
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".