Poetry plugin to configure and execute commands like npm run.
Project description
Poetry Plugin: Exec
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poetry_plugin_exec-1.0.4.tar.gz.
File metadata
- Download URL: poetry_plugin_exec-1.0.4.tar.gz
- Upload date:
- Size: 14.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f817061f309ee6980c891181c1a984cdb8c9af3d2bda604e78630e751a5f4ea
|
|
| MD5 |
887fffce9fbc33c2eca58e6b9f372c30
|
|
| BLAKE2b-256 |
74cb7e7c1a2515210a4e984c6bbfce1de5946762a38738f76019d7239e1799a8
|
File details
Details for the file poetry_plugin_exec-1.0.4-py3-none-any.whl.
File metadata
- Download URL: poetry_plugin_exec-1.0.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0c2f2f2c9690745db89e5fcd1646325a630aa3977deb26f96c7d752aef6e3f4
|
|
| MD5 |
e0642a4f640c4e8985aeffe39b2f51cf
|
|
| BLAKE2b-256 |
535dbcd289a7398c846b667eaeb6d4af3d893705e6c360acda51146c7e9a6818
|