djlint / djlint-vscode

VS Code extension for formatting and linting HTML templates (Django, Jinja, Nunjucks, Twig, Handlebars, Mustache).
https://marketplace.visualstudio.com/items?itemName=monosans.djlint
MIT License
50 stars 2 forks source link

The VSCode extension `djlint` should not require people to install the Python package #780

Open nbro opened 2 weeks ago

nbro commented 2 weeks ago

Under the hood, the VSCode extension djlint should take care of installing djlint with pip or whatever in an isolated environment, which should be removed whenever we remove the extension. I shouldn't need to add this dependency to my pyproject.toml (with poetry) just to make the VSCode extension work.

monosans commented 2 weeks ago

You can use pipx

nbro commented 2 weeks ago

My point is that I shouldn't need to use any Python package manager (pip, pipx, pip-tools, poetry, whatever) to make the VSCode extension work. We should just need maybe Python and that's it. So, the Python package should be installed automatically, in some virtual environment, whenever we install the VSCode extension, and it should be removed automatically, along with the virtual environment, whenever we remove the extension