jnewman / poetry-pyinvoke-plugin

A plugin for poetry that allows you to invoke commands in your tasks.py file delegating to pyinvoke.

Home Page:https://pypi.org/project/poetry-pyinvoke-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

poetry-pyinvoke-plugin

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

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.

Usage

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

Publishing

To publish a new version create a release from main (after pull request).

About

A plugin for poetry that allows you to invoke commands in your tasks.py file delegating to pyinvoke.

https://pypi.org/project/poetry-pyinvoke-plugin/

License:MIT License


Languages

Language:Python 100.0%