Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.08 KB

Readme.md

File metadata and controls

31 lines (22 loc) · 1.08 KB

pybadge pylint Score

pylint badges for everyone!

Howto

  1. Check your pylint score with pylint or python3-pylint
  2. Goto: https://mperlet.github.io/pybadge/ and insert your score
  3. Copy the generated markdown link into your README

bash alias for markdown text

run pybadge <pyfile>

function pybadge() {
	echo "![pylint Score](https://mperlet.github.io/pybadge/badges/$(pylint $1 2> /dev/null | tail -n2 | awk '{print $7}' | cut -d"/" -f1).svg)"
}

Color intervals

0.00 < pylint Score < 3.00 < pylint Score < 7.00 pylint Score < 10.00

Limitations

  • negative scores are not supported
  • no dynamic badges, needs something like continuous integration services

Idea

I was looking for python badges and could not find any for pylint. The idea for this implementation is inspired from the blogpost http://www.desmondrivet.com/blog/technical/pylint-badges.html.