Skip to content

Commit

Permalink
Update QualityControlChecker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ryma2fhir authored Apr 23, 2024
1 parent 3389bb9 commit 45eb457
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QualityControlChecker/QualityControlChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def printWarnings(warnings, file, error):
return error


print("\n\033[1mNote:The elements id, name, title, url are checked against the filename. If the filename is incorrect expect all these elements to error.\033[0m\n\n")
print("\n\033[1mNote:The elements id, name, title, url are checked against the filename. If the filename is incorrect expect all these elements to error.\033[0m\n")
'''Creates an error state, if any of the checks fails it will cause the action to fail'''
error=False
mainVar,repoName = getRepoVariables()
Expand All @@ -259,7 +259,7 @@ def printWarnings(warnings, file, error):
for path in paths:
try:
files = os.listdir('./'+path)
print("\033[1m"+path.title()+"\033[0m")
print("\n\033[1m"+path.title()+"\033[0m")
except:
continue
for file in files:
Expand Down Expand Up @@ -289,7 +289,7 @@ def printWarnings(warnings, file, error):
''' Check Examples. Prints outcome if issues found and sets error to True.'''
try:
examplesPath = os.listdir('./examples')
print("\033[1mExamples\033[0m")
print("\n\033[1mExamples\033[0m")
except:
examplesPath = []
for example in examplesPath:
Expand All @@ -303,7 +303,7 @@ def printWarnings(warnings, file, error):

''' If any QC issues found within the script, cause the action to fail'''
if error == True:
print("\n\033[1mPlease fix the errors found above\033[0m")
print("\n\033[1mPlease fix the errors found above before merging\033[0m")
sys.exit(2)
else:
print("\n\n\033[1mCheck Complete!\033[0m")

0 comments on commit 45eb457

Please sign in to comment.