-
-
Notifications
You must be signed in to change notification settings - Fork 32
Description
First let me start with a big thanks to @DavidVujic for maintaining this awesome library.
My team uses it and we love it. so much that it has become part of our CI and I even made a zsh plugin so it easier to poetry poly around lol (@DavidVujic ping me in private if you want to distribute it somehow, I don't mind sharing).
I have 2 features I would like to discuss:
Is your feature request related to a problem? Please describe.
-
when using ppc (poetry poly check) -v, each time the order of packages and the order that comes after "is importing" is changed. also for some reason there's a line break if the list exceeds some length, causing tools like
grepto be harder to apply. -
let's say I have 2 bricks, aa and bb. aa defines classes A and B and bb defines class C such that
# a.py
class A:
pass
# b.py
from proj.bb.core import C
class B(C):
pass
# c.py
from proj.aa.core import A
class C(A):
passwhich is perfectly python legal but results in :


which can lead to bad packages includes in the pyproject.toml file.
Describe the solution you'd like
- sort the packages and the part after "is importing" (lexicographically I assume?) and don't introduce line breaks
- make it so poetry poly check or another command if necessary will result in something like
π€ Circular dependency detected between aa and bb
Error: Process completed with exit code 1.Describe alternatives you've considered
There's no alternative to polylith. it's really good.
Additional context
Keep up the good work David π