Skip to content

Commit

Permalink
chore: remove unecessary main function
Browse files Browse the repository at this point in the history
  • Loading branch information
seyLu committed Feb 14, 2024
1 parent 335c72a commit 75ab1ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/ghlabel/utils/dump_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,5 @@ def dump(
logging.info("Finished dumping of labels.")


def main() -> None:
DumpLabel.dump(new=True)


if __name__ == "__main__":
main()
DumpLabel.dump(new=True)
6 changes: 1 addition & 5 deletions src/ghlabel/utils/setup_github_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,7 @@ def add_labels(self, labels: list[dict[str, str]] | None = None) -> None:
logging.info("Label creation process completed.")


def main() -> None:
if __name__ == "__main__":
github_label = GithubLabel()
github_label.remove_labels()
github_label.add_labels()


if __name__ == "__main__":
main()

0 comments on commit 75ab1ff

Please sign in to comment.