tbillington / kondo

Cleans dependencies and build artifacts from your projects.
MIT License
1.76k stars 51 forks source link

Can't raise recursive flag #126

Open thisismygitrepo opened 1 month ago

thisismygitrepo commented 1 month ago

I have python project and kondo removes __pacache__ only when I cd to directory of a module. But the package as a whole has many modules within modules. Can we please add a -r flag to clean the entire repo in one go? Thanks

tbillington commented 1 month ago

Hey, thanks for creating this issue. It has been raised before, it's a shortcoming from my initial design of the tool. I can toggle it off, but it makes the tool much less usable for most scenarios.

I could add a flag so that it will ignore that behaviour for the given path, it's something I'll consider.

There are a few related issues: https://github.com/tbillington/kondo/issues/108, https://github.com/tbillington/kondo/issues/55, https://github.com/tbillington/kondo/issues/29. Ultimately I'm trying to solve this with a rewrite of the project discovery & file tree traversal in https://github.com/tbillington/kondo/issues/111.