Skip to content

Commit 538963f

Browse files
committed
[skip ci] refactor: lint.py
1 parent 2089639 commit 538963f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lint.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ def main():
3232

3333
final_score: float = results.linter.stats['global_note']
3434
if final_score < threshold:
35-
print(f'PyLint Failed | score: {final_score:.2f} | threshold: {threshold:.2f}')
36-
raise Exception
37-
else:
38-
print(f'PyLint Passed | score: {final_score:.2f} | threshold: {threshold:.2f}')
35+
raise Exception(f'PyLint Failed | score {final_score:.2f} < threshold {threshold:.2f}')
36+
37+
print(f'[+] PyLint Passed | score {final_score:.2f} > threshold {threshold:.2f}')
3938

4039

4140
if __name__ == '__main__':

0 commit comments

Comments
 (0)