A plugin for poetry that allows you to invoke commands in your tasks.py
file delegating to pyinvoke
.
Heavily inspired by the work from keattang
on the poetry-exec-plugin project.
Installation requires poetry 1.6.0+. To install this plugin run:
pip install poetry-pyinvoke-plugin
# OR
poetry self add poetry-pyinvoke-plugin
For other methods of installing plugins see the poetry documentation.
tasks.py
from invoke import task
@task
def lint(c):
c.run("flake8")
c.run("black --check .")
Then:
poetry invoke lint
# OR
poetry inv lint
To publish a new version create a release from main
(after pull request).