Pre-commit: Accidentally deleted .cache/pre-commit/repo... folders

Created on 11 Feb 2020  路  1Comment  路  Source: pre-commit/pre-commit

Hi, I accidentally deleted the cache folders of pre-commit and now I'm facing the error message

.cache/pre-commit/repoxxxxxxxx/.pre-commit-hooks.yaml does not exist

Is there an easy way, a command or something, to rebuild the cache?

Thank you!

Most helpful comment

... and I figured it out myself. To document it for others who run into the same issue:

pre-commit clean

Seems to fix it. Afterwards, running pre-commit rebuilds the cache. Thanks anyway!

>All comments

... and I figured it out myself. To document it for others who run into the same issue:

pre-commit clean

Seems to fix it. Afterwards, running pre-commit rebuilds the cache. Thanks anyway!

Was this page helpful?
0 / 5 - 0 ratings