pivoshenko / poetry-plugin-dotenv

poetry-plugin-dotenv - is the plugin that automatically loads environment variables from a dotenv file into the environment before poetry commands are run
MIT License
66 stars 4 forks source link

Compatibility with Taskipy #226

Open vakaman opened 2 months ago

vakaman commented 2 months ago

Feature request:

Currently, there is no compatibility with Taskipy within the plugin.

Solution

I would like to propose adding compatibility with Taskipy to the plugin. This would enable users to load environments using Taskipy, enhancing the flexibility and usability of the plugin.

Alternatives

One alternative could be manually managing environment loading within Taskipy scripts. However, integrating compatibility directly into the plugin would provide a more seamless and user-friendly experience.

Context

Taskipy is a popular task runner for Python projects, and adding compatibility with it would make the plugin more versatile and appealing to a wider range of users.

Examples:

[tool.taskipy.tasks]
load_env  = "pydotenv.load .env"
pre_tests = "pydotenv.load .env.test"
tests = "pytest -vv"
pivoshenko commented 2 months ago

@vakaman thanks, looks like a nice idea! I will have a look into it on the weekend 🙂 Also if you want to contribute please feel free to pick up the issue 😉

vakaman commented 2 months ago

Awesome, I'll handle that.