Skip to content

Header at the top of the lock file #3954

Closed Answered by abn
akhileshraju asked this question in Q&A
Discussion options

You must be logged in to vote

Since the lock file is a toml file, syntactically comments are fine. However, since the lock file is expected to be completely poetry managed and because we rewrite the lock file instead of preserving any comments or manual edits in most cases, there is no guarantee that these comments will be preserved for all operations. For example if a new dependency is added or old one removed, you will end up with a brand new toml file. You will have to re-add the licence everytime, or alternatively use a pre-commit hook to ensure a licence header is injected into all files automatically.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akhileshraju
Comment options

Answer selected by akhileshraju
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants