While I know how to work around/with the usual circular imports in Python, I really would like to ensure our project never gets into this problem/smell in the first place. So I am searching for tools/automation, which detects circular imports.
I am aware that some of our dependencies have circular imports - thus it would also need to only detect on our code and ignore dependency code.
My idea is to hook this into CI and preferably Visual Studio Code.