gauge-sh / tach

A Python tool to enforce dependencies, using modular architecture 🌎 Open source 🐍 Installable via pip πŸ”§ Able to be adopted incrementally - ⚑ Implemented with no runtime impact ♾️ Interoperable with your existing systems πŸ¦€ Written in rust
https://gauge.sh
MIT License
1.01k stars 35 forks source link

Restore `TachCircularDependecyError` pretty print #309

Closed sparshg closed 1 week ago

sparshg commented 1 week ago

Regression introduced during porting to Rust

Before

Module tree error: Circular dependency detected: ["domain_one", "domain_two", "domain_three"]

After

❌ Circular dependency detected for module 'domain_one'
❌ Circular dependency detected for module 'domain_two'
❌ Circular dependency detected for module 'domain_three'

Resolve circular dependencies.
Remove or unset 'forbid_circular_dependencies' from 'tach.toml' to allow circular dependencies.