]> source.dussan.org Git - gitignore.git/commitdiff
[Python] Add poetry.lock 3911/head
authorJP-Ellis <josh@jpellis.me>
Mon, 6 Dec 2021 23:31:40 +0000 (10:31 +1100)
committerGitHub <noreply@github.com>
Mon, 6 Dec 2021 23:31:40 +0000 (10:31 +1100)
Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.  This is especially recommended for binary packages to ensure reproducibility, and is more commonly ignored for libraries.

This is taken from https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control

Python.gitignore

index 92ff2c4bb085c5af45c0b39b1e46b641e582359c..a13ea0593d272f19639d1dc9e402034013a96e0e 100644 (file)
@@ -94,6 +94,13 @@ ipython_config.py
 #   install all needed dependencies.
 #Pipfile.lock
 
+# poetry
+#   Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
+#   This is especially recommended for binary packages to ensure reproducibility, and is more
+#   commonly ignored for libraries.
+#   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
+#poetry.lock
+
 # PEP 582; used by e.g. github.com/David-OConnor/pyflow
 __pypackages__/