Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent dunder main usage #463

Open
ka-rocha opened this issue Dec 5, 2024 · 0 comments
Open

Consistent dunder main usage #463

ka-rocha opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ka-rocha
Copy link
Contributor

ka-rocha commented Dec 5, 2024

As discussed in #436, the use of dunder main for command line calls to python files is not consistent across the codebase. The changes added in #436 uses the function protocol while other instances may put the check for dunder main at some unspecified location within the file above the code intended to be executed.

Since the functional use is recommended in the python documentation with rational described there, this issue is to the transition all dunder main calls to match for logical consistency (e.g. bin/posydon-run-grid).

@mkruckow mkruckow added the enhancement New feature or request label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants