mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Cosmetics
This commit is contained in:
parent
d80db3d9a4
commit
84d9a3a5c2
1 changed files with 10 additions and 10 deletions
|
@ -184,16 +184,16 @@ class TestReport:
|
||||||
_print(self.style % self.message)
|
_print(self.style % self.message)
|
||||||
|
|
||||||
class Warning(TestReport):
|
class Warning(TestReport):
|
||||||
style = c.WARNING + "! %s " + c.END
|
style = c.WARNING + " ! %s " + c.END
|
||||||
|
|
||||||
class Error(TestReport):
|
class Error(TestReport):
|
||||||
style = c.FAIL + "✘ %s" + c.END
|
style = c.FAIL + " ✘ %s" + c.END
|
||||||
|
|
||||||
class Info(TestReport):
|
class Info(TestReport):
|
||||||
style = c.OKBLUE + " %s" + c.END
|
style = c.OKBLUE + " ⓘ %s" + c.END
|
||||||
|
|
||||||
class Success(TestReport):
|
class Success(TestReport):
|
||||||
style = c.OKGREEN + "☺ %s ♥" + c.END
|
style = c.OKGREEN + " ☺ %s ♥" + c.END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ def report_warning_not_reliable(str):
|
||||||
|
|
||||||
|
|
||||||
def print_happy(str):
|
def print_happy(str):
|
||||||
_print(c.OKGREEN + "☺ ", str, "♥")
|
_print(c.OKGREEN + " ☺ ", str, "♥")
|
||||||
|
|
||||||
|
|
||||||
def urlopen(url):
|
def urlopen(url):
|
||||||
|
@ -358,11 +358,11 @@ class App(TestSuite):
|
||||||
def qualify_for_level_7(self):
|
def qualify_for_level_7(self):
|
||||||
|
|
||||||
if tests_reports["error"]:
|
if tests_reports["error"]:
|
||||||
print("Uhoh there are some errors to be fixed :(")
|
print(" Uhoh there are some errors to be fixed :(")
|
||||||
elif len(tests_reports["warning"]) > 3:
|
elif len(tests_reports["warning"]) > 3:
|
||||||
print("Still some warnings to be fixed :s")
|
print(" Still some warnings to be fixed :s")
|
||||||
elif len(tests_reports["warning"]) > 0:
|
elif len(tests_reports["warning"]) > 0:
|
||||||
print("Only %s warning remaining! You can do it!" % len(test_reports["warning"]))
|
print(" Only %s warning remaining! You can do it!" % len(tests_reports["warning"]))
|
||||||
else:
|
else:
|
||||||
yield Success("Not even a warning! Congratz and thank you for keeping that package up to date with good practices! This app qualifies for level 7!")
|
yield Success("Not even a warning! Congratz and thank you for keeping that package up to date with good practices! This app qualifies for level 7!")
|
||||||
|
|
||||||
|
@ -1022,7 +1022,7 @@ class AppCatalog(TestSuite):
|
||||||
subprocess.check_call(["git", "clone", "https://github.com/YunoHost/apps", "./.apps", "--quiet"])
|
subprocess.check_call(["git", "clone", "https://github.com/YunoHost/apps", "./.apps", "--quiet"])
|
||||||
else:
|
else:
|
||||||
subprocess.check_call(["git", "-C", "./.apps", "fetch", "--quiet"])
|
subprocess.check_call(["git", "-C", "./.apps", "fetch", "--quiet"])
|
||||||
subprocess.check_call(["git", "-C", "./.apps", "reset", "origin/master", "--hard"])
|
subprocess.check_call(["git", "-C", "./.apps", "reset", "origin/master", "--hard", "--quiet"])
|
||||||
|
|
||||||
open(flagfile, "w").write("")
|
open(flagfile, "w").write("")
|
||||||
|
|
||||||
|
@ -1140,7 +1140,7 @@ class AppCatalog(TestSuite):
|
||||||
score = sum([good_quality(infos) for d, infos in history])
|
score = sum([good_quality(infos) for d, infos in history])
|
||||||
rel_score = int(100 * score / N)
|
rel_score = int(100 * score / N)
|
||||||
if rel_score > 90:
|
if rel_score > 90:
|
||||||
yield Success("The app is long-term good quality in the catalog ! (Score: %s/100)" % rel_score)
|
yield Success("The app is long-term good quality in the catalog !")
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
# _____ _ _ #
|
# _____ _ _ #
|
||||||
|
|
Loading…
Add table
Reference in a new issue