Skip to content

Wrap main call in __main__ guard#1

Open
FamilDardashti wants to merge 1 commit into
mainfrom
codex/move-main-call-inside-if-__name__-block
Open

Wrap main call in __main__ guard#1
FamilDardashti wants to merge 1 commit into
mainfrom
codex/move-main-call-inside-if-__name__-block

Conversation

@FamilDardashti
Copy link
Copy Markdown
Owner

Summary

  • prevent top-level execution by guarding main() with if name == "main"

Testing

  • python -m py_compile main.py
  • pytest (no tests run)

https://chatgpt.com/codex/tasks/task_b_68960b93559083278c0241d10de68bdd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant