Advertisement
joejoinerr

Generate requirements.txt on pre-commit whenever new dependencies are added using Poetry

Sep 11th, 2023
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.25 KB | None | 0 0
  1. repos:
  2. -   repo: local
  3.     hooks:
  4.     -   id: build-requirements
  5.         name: Build requirements.txt
  6.         entry: poetry export -o requirements.txt --without-hashes
  7.         files: poetry.lock
  8.         language: system
  9.         pass_filenames: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement