ucam-department-of-psychiatry / crate

Create and use de-identified research databases. Preprocess, extract text, anonymise/de-identify, link, apply natural language processing, query for research, manage consent for contact.
GNU General Public License v3.0
19 stars 7 forks source link

Check shebang scripts are executable #143

Closed martinburchell closed 4 months ago

martinburchell commented 4 months ago

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()