Beautify dependencies in pyproject.yaml based on poetry.lock
Project description
This is sort of a plugin for poetry which add comments with description for every dependency in pyproject.toml based on poetry.lock file.
So your dependencies will look like
[tool.poetry.dependencies]
python = "^3.7"
toml = "^0.10.0" # Python Library for Tom's Obvious, Minimal Language ·· https://pypi.org/project/toml/
[tool.poetry.dev-dependencies]
pytest = "^5.2" # pytest: simple powerful testing with Python ·· https://pypi.org/project/pytest/
mock = "^4.0.2" # Rolling backport of unittest.mock for all Pythons ·· https://pypi.org/project/mock/
How to install
Install via poetry
poetry add --dev poetry-deps-formatter
Install via PIP
pip install poetry-deps-formatter
Then you have to add it to tool.poetry.scripts section of your pyproject.toml file.
[tool.poetry.scripts]
format = "poetry_deps_formatter:formatter"
How to use
poetry run format
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file poetry_deps_formatter-0.1.2.tar.gz
.
File metadata
- Download URL: poetry_deps_formatter-0.1.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40a518a221b25916b632529139e70dc268a42a069180cff74191acd153e66481 |
|
MD5 | cde5437bb0f7f61ccf275fee3cd5cb63 |
|
BLAKE2b-256 | f7036f9c165622508d40a76c020130c36b54db6393b97ce9bfa76556f032c414 |
File details
Details for the file poetry_deps_formatter-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: poetry_deps_formatter-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa8c864c652f60a74e4b1cb09026f714f3d928a8bdc3076d6a68bfe7f688dbc8 |
|
MD5 | fdebe15b1e7f2d3e3aaca32f268790c2 |
|
BLAKE2b-256 | 37c260d115c52d6d74c6611e4f78cf759552d8e54b39d15fc23ec1c794121f90 |