thomasthiebaud / poetry-githooks

Simple git hooks with poetry
MIT License
15 stars 3 forks source link

Make settings customizable #8

Open jakubste opened 2 years ago

jakubste commented 2 years ago

Hey,

I have my poetry project in a subdirectory in the git repository. Running poetry run githooks setup fails with This is not a Git repository. Run 'git init' first. It would be nice to have the ability to overwrite GIT_DIR in settings in such cases.

thomasthiebaud commented 2 years ago

Hej, good idea. Would you be interested in doing a PR?

jakubste commented 2 years ago

If you have some general guidelines on how to implement this then yeah, sure. Simply reading from environment variables with a fallback to current implementation sounds ok?

thomasthiebaud commented 2 years ago

yes, that sounds perfect