Skip to content

Commit 1dc77ac

Browse files
theotherjimmy0xc0170
authored andcommitted
Made linting a recommendation and raised the bar for printing
1 parent 26e7a35 commit 1dc77ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/test/pylint.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
"""A test that all code scores above an 8.5 in pylint"""
1+
"""A test that all code scores above a 9.25 in pylint"""
22

33
import subprocess
44
import re
55
import os.path
6-
import sys
76

87
SCORE_REGEXP = re.compile(
98
r'^Your\ code\ has\ been\ rated\ at\ (\-?[0-9\.]+)/10')
@@ -41,9 +40,9 @@ def execute_pylint(filename):
4140
for python_module in FILES:
4241
_, stdout, stderr = execute_pylint(os.path.join(TOOLS_ROOT,
4342
python_module))
44-
if parse_score(stdout) < 8.5:
43+
score = parse_score(stdout)
44+
if score < 9.25:
4545
print(stdout)
46-
sys.exit(1)
4746

4847

4948

0 commit comments

Comments
 (0)