Skip to main content

Poetry plugin to configure and execute commands like npm run.

Project description

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.

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.3.tar.gz (14.4 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.3-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poetry_plugin_exec-1.0.3.tar.gz
  • Upload date:
  • Size: 14.4 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.3.tar.gz
Algorithm Hash digest
SHA256 da617dce221ad2ed30cae0b28dddda2a7b0bba6f56fd493391a63aa1d4e031a6
MD5 0c322885cf7a43805ca994c32fab316e
BLAKE2b-256 e5d515c42c685c717dece4b1f9385e5b26e5f9dabf73ed7c7884ed2efdb11b1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poetry_plugin_exec-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9289cc2c78a9ce00fbc212e1e3672e8822f676a01df5c8a403736f7e41731584
MD5 63c079caf01fd6151a710785629fba53
BLAKE2b-256 002337c33f578bb1389475990dfd248a7ff49d5dfeeb198971353c238a5bd370

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