Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature idea] Support external cache control commands #3423

Open
webknjaz opened this issue Oct 22, 2024 · 2 comments
Open

[feature idea] Support external cache control commands #3423

webknjaz opened this issue Oct 22, 2024 · 2 comments

Comments

@webknjaz
Copy link
Contributor

So basically running tox -r would reset tox's cache. However, when it wraps other things with their own caches, those won't be affected. One example is pre-commit.

It'd be nice to have some sort of a pre_cache_clean setting in tox.ini where additional commands could be put and would be executed right before tox deletes .tox/{envname}. In case of pre-commit, I'd put pre_cache_clean = {envpython} -Im pre_commit clean into the config and it would always purge both caches.

@gaborbernat
Copy link
Member

If someone want to do this sure, but I have no plans myself to work on this.

@webknjaz
Copy link
Contributor Author

Sure, I just wanted to ensure this can be green-lighted..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants