Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make pre-commit super fast via caching + avoiding updating miniconda
pre-commit spends most of its time setting up the hooks (=cloning their repos and installing each hook into its own virtual env). Caching helps to give almost instant feedback on new PRs. The cache invalidates when the python version, pre-commit version or pre-commit config changes. Also avoiding the setup-miniconda action as that anyways uses the miniconda already present on the runners to save time. Also adding black hook to pre-commit and limit to buildscripts. Note: This uses https://github.com/psf/black-pre-commit-mirror and not https://github.com/psf/black to avoid cloning the entire black repo (=faster).
- Loading branch information