Skip to content

M4RC0Sx/poetry-plugin-exec

Repository files navigation

Poetry Plugin: Exec

Poetry

Poetry plugin to define and execute shell scripts in pyproject.toml file like npm run.

Important

This plugin only works on Poetry versions >=2.1.0 installed on Python versions >=3.9!

Installation

Install the exec plugin via the poetry self add:

poetry self add poetry-plugin-exec

Usage

In the pyproject.toml file of your project, define the [tool.poetry_plugin_exec.scripts] section, adding your needed scripts:

[tool.poetry_plugin_exec.scripts]
check-format = "poetry run ruff check ."

Then, you can simply run the poetry exec <script_name> command:

poetry exec check-format

Note

This plugin is based on examples from the official Poetry repositories.

About

Poetry plugin to configure and execute commands like npm run.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •