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.1.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.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poetry_plugin_exec-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d822179ae24321c6383f822e30f33f5600c8f01e5f3a9e77ea1e277f7bedd779
MD5 7212bcc1d0534ffd1e5632c061e109e3
BLAKE2b-256 712b73df80a606d671f0c19078747fa7df41b00a666f0d7fd3e84740bf16cfd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poetry_plugin_exec-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd41187121a78d57d472e5f0fab9e0c3e2307994e7f83e6ac429727695f12097
MD5 eae4716bcb896ffd2125b354c977cda5
BLAKE2b-256 64624581c681dfdc2eb0fe48ae52c4c3bc3d3b19903a10676764b7f1f7b5aa3c

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