1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Black Formatting - travis #

This commit is contained in:
checktheroads
2019-06-16 15:54:51 -07:00
parent 2f54044e58
commit 68a72ce0b8

View File

@@ -52,7 +52,7 @@ def pylint_badge():
raise RuntimeError(f"Pylint score {pylint_score} not acceptable.")
badge_file = os.path.join(working_directory, "pylint.svg")
if os.path.exists(badge_file):
shutil.rmtree(badge_file)
os.remove(badge_file)
ab_thresholds = {1: "red", 10: "green"}
badge = anybadge.Badge("pylint", pylint_score, thresholds=ab_thresholds)
badge.write_badge("pylint.svg")