Skip to content

[feature idea] Support external cache control commands #3423

Open
@webknjaz

Description

@webknjaz

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions