Chapter 28. With Poetry

Procedure 28.1. Set up the project-specific environment
  1. Create the virtual environment

    poetry init poetry add --group dev lsp ruff ruff-lsp

    And Makefile skeleton, and pyproject, and other dev tools?

  2. Use IPython for shell stuff.

    pip install ipython

    Note

    Never actually used this

  3. Install ipdb

    poetry add --group dev ipdb

    Note

    Set this environment variable somewhere appropriate. In ~/.bashrc, probably

    export PYTHONBREAKPOINT="ipdb.set_trace"