Skip to main content

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.

Metadata

Release files for poetry-plugin-exec 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poetry-plugin-exec 1.0.4
File Size Uploaded
poetry_plugin_exec-1.0.4.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poetry-plugin-exec 1.0.4
File Interpreter ABI Platform
poetry_plugin_exec-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 29.7 kB

Release files / poetry_plugin_exec-1.0.4.tar.gz

Download URL poetry_plugin_exec-1.0.4.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8f817061f309ee6980c891181c1a984cdb8c9af3d2bda604e78630e751a5f4ea
BLAKE2b-256 checksum
How to use checksums
74cb7e7c1a2515210a4e984c6bbfce1de5946762a38738f76019d7239e1799a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

Release files / poetry_plugin_exec-1.0.4-py3-none-any.whl

Download URL poetry_plugin_exec-1.0.4-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0c2f2f2c9690745db89e5fcd1646325a630aa3977deb26f96c7d752aef6e3f4
BLAKE2b-256 checksum
How to use checksums
535dbcd289a7398c846b667eaeb6d4af3d893705e6c360acda51146c7e9a6818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page