Use main() function
This commit is contained in:
parent
b06e6dfd85
commit
0af4cc2148
1 changed files with 5 additions and 1 deletions
|
@ -484,7 +484,7 @@ def paste_on_haste(data):
|
|||
sys.exit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main() -> None:
|
||||
args = [arg for arg in sys.argv[1:] if arg != "--commit-and-create-PR"]
|
||||
|
||||
if len(args):
|
||||
|
@ -522,3 +522,7 @@ if __name__ == "__main__":
|
|||
)
|
||||
if apps_updated:
|
||||
print(f"Apps updated: {', '.join(apps_updated)}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue