Lakshmikanth2001 / GitHooks

Git Hooks VS-Code Extension
https://marketplace.visualstudio.com/items?itemName=lakshmikanthayyadevara.githooks
Other
7 stars 2 forks source link

Add support for other scripting languages #19

Closed AiSY-Yang closed 6 months ago

AiSY-Yang commented 7 months ago

Add support for other scripting languages, such as python.

Lakshmikanth2001 commented 7 months ago

Thank you for your contributions,

I think I am unable to get the core logic

the shebang expression #/bin/python for a file will execute the file in Python with the command

sh script.sh why do we need to look for #!/usr/bin/env ?

do you have any specific use case where the hook is not executing as a python script despite proper shebang

AiSY-Yang commented 7 months ago

I use shebang #!/usr/bin/env python https://peps.python.org/pep-0486/#impact-on-script-launching

Lakshmikanth2001 commented 6 months ago

Thank you for your contribution, i will merge this PR now