tach icon indicating copy to clipboard operation
tach copied to clipboard

`tach check` with circular dependencies should emit more details

Open miketheman opened this issue 11 months ago β€’ 1 comments

With the configuration forbid_circular_dependencies = true, running tach check on a codebase that has circular imports may emit something like the following:

$ tach check
❌ Circular dependency detected for module 'foo.models'
❌ Circular dependency detected for module 'foo.utils'
❌ Circular dependency detected for module 'foo.tasks'

But doesn't provide much more beyond that.

It would be better to add a --verbose or --debug flag to this check to emit more details as to what cycle was found, how many steps, and generally provide more context to the reader on how to resolve.

miketheman avatar Dec 15 '24 16:12 miketheman