Skip to content

Beautify dependencies in pyproject.yaml based on poetry.lock

Notifications You must be signed in to change notification settings

true-brains/poetry-deps-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

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

About

Beautify dependencies in pyproject.yaml based on poetry.lock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages