tach
tach copied to clipboard
`tach check` with circular dependencies should emit more details
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.