Dev containers are amazing, even just for solo projects. They make maintenance a breeze, and don't pollute your coding rig with unneeded packages, or venv created by package managers.
EDIT: Here's a very simple VSCode dev container that I've spun up for a python project, if anyone wants another example of what they can look like:
https://github.com/wesker-albert/cibo/tree/master/.devcontainer