Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1267859?usp=email )

Change subject: pre-commit: clean unused cached repos
......................................................................

pre-commit: clean unused cached repos

The pre-commit repositories keep accumulating in the cache. On Wikimedia
CI they would pill up and we found out the cache took several gigabytes
which takes several minutes to transfer.

Invoke `pre-commit gc` after lint which would clean the unused cached
repositories.

Bug: T422242
Change-Id: I93b33012b6aff537c388f4c108170c6084227453
---
M tox.ini
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/tox.ini b/tox.ini
index a5d46d2..8b4f859 100644
--- a/tox.ini
+++ b/tox.ini
@@ -36,6 +36,7 @@
 commands =
     python --version
     lint: pre-commit run --all-files --show-diff-on-failure
+    lint: pre-commit gc

     deeptest: python {[params]generate_user_files}
     deeptest-py39: python -m unittest discover -vv -p "*_tests.py"

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1267859?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I93b33012b6aff537c388f4c108170c6084227453
Gerrit-Change-Number: 1267859
Gerrit-PatchSet: 1
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to