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

Uploaded Python 3

File details

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

File metadata

  • Download URL: poetry_plugin_exec-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 2fee69b9f527ffb0ed17777c75b754407aa35a710b72160475b5e9f844dc2de5
MD5 7c9eb8b19502b1e2af4b96750f8a8a11
BLAKE2b-256 b4b813117b31dc8688a2a643eedd6b9f5f26ab849531fee44a3d4bf7123c7fdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poetry_plugin_exec-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0420898cf0f63ba73811cc90bf79e2d45a5d8b1b55159f0e4a67a80f56921d14
MD5 7a5169f43633a268ebf1a6ad918aa33e
BLAKE2b-256 0be9ab2971c9859bfeeff378839ab2954f2fdabca368975d59c554bbf697c68f

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