andrei-shabanski / poetry-plugin-sort

Poetry plugin to sort the dependencies
MIT License
42 stars 1 forks source link

[Feature Request] Move optionals to the bottom #3

Closed roniemartinez closed 1 year ago

roniemartinez commented 1 year ago

Example: https://github.com/roniemartinez/dude/blob/136ef39ec25a781b76b0749dac6158d84b056cab/pyproject.toml#L34-L48

The example when sorted will sort everything and ignore optionals

[tool.poetry.dependencies]
python = "^3.7"
braveblock = ">=0.1.13,<0.4.0"
playwright = "^1.19.0"
PyYAML = "^6.0"
# optionals
beautifulsoup4 = { version = "^4.10.0", optional = true }
cssselect = { version = "^1.1.0", optional = true }
httpx = { version = ">=0.22,<0.24", optional = true }
lxml = { version = "^4.8.0", optional = true }
parsel = { version = "^1.6.0", optional = true }
pybrowsers = {version = ">=0.4.1,<0.6.0", optional = true}
pyppeteer = { version = "^1.0.2", optional = true }
selenium-wire = { version = ">=4.6.2,<6.0.0", optional = true }
webdriver-manager = { version = "^3.7.0", optional = true }
andrei-shabanski commented 1 year ago

@roniemartinez Try move-optionals-to-bottom = true setting for that

roniemartinez commented 1 year ago

@andrei-shabanski Thank you! I am using it now. 🙇