Skip to content

Instantly share code, notes, and snippets.

@jfmatth
Created September 17, 2024 01:09
Show Gist options
  • Save jfmatth/49944baa33dff5b00126d267742d3335 to your computer and use it in GitHub Desktop.
Save jfmatth/49944baa33dff5b00126d267742d3335 to your computer and use it in GitHub Desktop.
pre-commit hook
#!/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