to install:
$ pip install metrics.pylint
to uninstall:
$ pip uninstall metrics.pylint
for details please see the documentation of metrics.
The matrics.gitinfo package is a plugin for the metrics package.
metrics.pylint adds a pylint_score to file metrics for all python files:
"tests/test_sloc_python.py": {
"comments": 8,
"language": "Python",
"mccabe": 0,
"positions": [],
"pylint_score": 6.67,
"ratio_comment_to_code": 0.24,
"sloc": 33
}
alecxe for a recipe on how to use pylint programmatically and how to extract the pylint score: https://stackoverflow.com/questions/39453828/extracting-pylint-score
Copyright (c) 2018 Mark Fink and others. metrics is released under the MIT License (see MIT_LICENSE).