smarie / python-genbadge

A library to generate badges for typical checks (flake8, pytest, coverage, etc.)
https://smarie.github.io/python-genbadge/
BSD 3-Clause "New" or "Revised" License
67 stars 16 forks source link

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

Open smarie opened 3 years ago

smarie commented 3 years ago

I see several alternatives for the "tests" badge

smarie commented 3 years ago

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

hejcman commented 3 years ago

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".