Skip to content

Commit

Permalink
updated python script (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArinNigam authored Mar 30, 2024
1 parent 73584a3 commit d5688f2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/check_ignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,17 @@ def main():
err.append(filepath)

# If no changed/modified contains ignore directive for any custom lint rule
# if len(err) == 0:
# print(
# '''🚀 {} Hurrah! No ignore directive found in any modified/added file(s)'''.format('\033[92m'))
# sys.exit(0)
# else:
# print(
# '''🔍 {}Ignore directive for custom lint rule found. Please remove them and add valid documentation.'''.format(
# '\033[91m'))
# for failing_file in err:
# print('''>>> File name: {}\n'''.format(failing_file))
# sys.exit(1)
if len(err) == 0:
print(
'''🚀 {} Hurrah! No ignore directive found in any modified/added file(s)'''.format('\033[92m'))
sys.exit(0)
else:
print(
'''🔍 {}Ignore directive for custom lint rule found. Please remove them and add valid documentation.'''.format(
'\033[91m'))
for failing_file in err:
print('''>>> File name: {}\n'''.format(failing_file))
sys.exit(1)


if __name__ == '__main__':
Expand Down

0 comments on commit d5688f2

Please sign in to comment.