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

Fix check-external detecting pyproject.toml in hidden/excluded dirs #281

Closed sparshg closed 2 weeks ago

sparshg commented 2 weeks ago
>>> tach check-external
Checking /Users/sparsh/Code/rust/tach/python/tests/example/multi_package/src/pack-f/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/python/tests/example/multi_package/src/pack-a/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/python/tests/example/multi_package/src/pack-g/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/python/tests/example/multi_package/src/pack-b/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/python/tests/example/multi_package/src/pack-e/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/python/tests/example/multi_package/src/pack-d/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/python/tests/example/multi_package/src/pack-c/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/pyproject.toml
Checking /Users/sparsh/Code/rust/tach/.venv/lib/python3.12/site-packages/pandas/pyproject.toml

(These are the entries in the output of walk_pyprojects in filesystem.rs) This resulted in multiple errors in pandas library inside my .venv even though its hidden

After:

>>> tach check-external
Checking /Users/sparsh/Code/rust/tach/pyproject.toml