Created
September 17, 2024 01:09
-
-
Save jfmatth/49944baa33dff5b00126d267742d3335 to your computer and use it in GitHub Desktop.
pre-commit hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generate requirements.txt from Pipfile | |
pipenv sync | |
pipenv requirements > requirements.txt | |
# Add requirements.txt to the commit | |
git add requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment