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.08k stars 35 forks source link

Fix checking project imports from excluded files #263

Closed emdoyle closed 2 months ago

emdoyle commented 2 months ago

Fixes #261

The issue was that within get_project_imports, the exclusion check was using a path relative to the project root. Since we already pass absolute source roots, and exclude patterns are made absolute as well, we should just drop this relative path calculation entirely.