Skip to main content

Poetry plugin to configure and execute commands like npm run.

Project description

Poetry Plugin: Shell

Poetry

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

[!IMPORTANT]
This plugin only works on Poetry versins >=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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry_plugin_exec-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poetry_plugin_exec-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file poetry_plugin_exec-1.0.0.tar.gz.

File metadata

  • Download URL: poetry_plugin_exec-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

File hashes

Hashes for poetry_plugin_exec-1.0.0.tar.gz
Algorithm Hash digest
SHA256 82ca39aab174aa924fb7b3a9949ea2306e29bd309009dec427221155a24e82ca
MD5 e0918f3bb070cca315a24a171a96bfa6
BLAKE2b-256 682f5ed9fd1b6ddd915b17f576ab582e6dfe3a083537e96a2c96a827f1aad74b

See more details on using hashes here.

File details

Details for the file poetry_plugin_exec-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: poetry_plugin_exec-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

File hashes

Hashes for poetry_plugin_exec-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8378821cf20f77e692666d50c36a0397769855b4866b7d86d4f6db5cacdbe28
MD5 917a69f96d06bbbe720afe2308712f16
BLAKE2b-256 a276c80c99687b8ecbe1b414962c18f4464a93ae3634e3ffcd18543550990b70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page