Last active
March 25, 2024 10:59
-
-
Save nilreml/e00e589d3aee60e922f9d0db4f3b57b8 to your computer and use it in GitHub Desktop.
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
Bash completions: | |
mkdir -p ${XDG_DATA_HOME:-~/.local/share}/bash-completion/completions | |
poetry completions bash > ${XDG_DATA_HOME:-~/.local/share}/bash-completion/completions/poetry | |
Enter virtual environment: | |
poetry shell | |
Exit virtual environment: | |
exit | |
Sync poetry.lock with pyproject.toml: | |
poetry lock --no-update | |
Install dependencies inside virtual environment, in sync with poetry.lock: | |
poetry shell | |
poetry install --sync | |
Recreate virtual environment: | |
poetry shell | |
poetry env remove $(which python) | |
poetry install | |
Recreate dependency graph (poetry.lock): | |
rm poetry.lock | |
poetry lock | |
Rename main module: | |
pyproject.toml -> tool.poetry -> name | |
poetry shell | |
poetry update | |
poetry install --sync | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment