Skip to content

mperlet/pybadge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e667e35 · Apr 19, 2017

History

8 Commits
Feb 18, 2017
Apr 19, 2017
Feb 18, 2017
Feb 18, 2017
Feb 18, 2017

Repository files navigation

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.

Releases

No releases published

Packages

No packages published