Two of my favorite tools for automating my workflow when developing projects — both personal and professional — is the power-couple of tox and poetry. These two tools combined make linting, testing, and virtualizing my code across multiple versions of Python a cinch!

I’ve grown to really despise managing multiple versions of Python and Python packages outside of a Python virtual environment. After just one or two projects with a handful of dependencies, it becomes a tangled mess to keep everything working right. Modifying a dependency in one project should not affect other projects on your machine in any way. Dependencies and versions of Python between projects should be idempotent. It is impractical to manually manage projects over time as new versions of Python and updates to packages are released without the use of Python virtual environments without breaking another project on your machine.

#python3 #python #virtual-environment #programming

Python: A toxic work environment (tox & poetry)
2.60 GEEK