Skip to content

Commit

Permalink
merge in main
Browse files Browse the repository at this point in the history
Co-authored-by: Max Ole Elliger <[email protected]>
  • Loading branch information
oninach and motrellin committed May 31, 2023
1 parent 5ec90f2 commit befbfcf
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions src/pylint/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,4 @@
if average_score < THRESHOLD:
print("Linter failed: Average score < threshold value="+str(THRESHOLD))
sys.exit(1)
sys.exit(0)


#-------------------------------

# import os
# import sys
# from pylint import lint

# THRESHOLD = 5
# folder_path = "src/import-script/res"

# # Get a list of all Python files in the folder
# file_list = [os.path.join(folder_path, filename) for filename in os.listdir(folder_path) if filename.endswith(".py")]

# # Run pylint on each file
# lint_output = []
# for file_path in file_list:
# run = lint.Run(["--rcfile=.pylintrc", file_path], do_exit=False)
# score = run.linter.stats.global_note
# lint_output.append(score)

# print(lint_output)
# # Calculate the average score
# scores = [float(output) for output in lint_output]

# print("Scores: ", scores)
# print("Length: ", len(scores))
# average_score = sum(scores) / len(scores)

# print("Average score: ", average_score)
# if average_score < THRESHOLD:
# print("Linter failed: Average score < threshold value")
# sys.exit(1)
# sys.exit(0)
sys.exit(0)

0 comments on commit befbfcf

Please sign in to comment.