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

Check shebang scripts are executable #143

Merged
merged 12 commits into from
Feb 26, 2024

Conversation

martinburchell
Copy link
Collaborator

Add a pre-commit hook to ensure that all scripts with shebangs are executable.
Remove shebangs from scripts that shouldn't have one.
Make scripts that should have a shebang executable.

Ensure there is a:

 if __name__ == "__main__":
    main()

in Python scripts with main()

@martinburchell martinburchell merged commit 5d76b88 into master Feb 26, 2024
7 checks passed
@martinburchell martinburchell deleted the check-shebang-scripts-are-executable branch February 26, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants