def score(package_path):
python_files = find_files(package_path, '<STR_LIT>')<EOL>total_counter = Counter()<EOL>for python_file in python_files:<EOL><INDENT>output = run_pylint(python_file)<EOL>counter = parse_pylint_output(output)<EOL>total_counter += counter<EOL><DEDENT>score_value = <NUM_LIT:0><EOL>for count, stat in enumerate(total_counter):<EOL><INDENT>score_value += SCORING_VALUES[stat] * count<EOL><DEDENT>return score_value / <NUM_LIT:5><EOL>
Runs pylint on a package and returns a score
Lower score is better

:param package_path: path of the package to score
:return: number of score