Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This speeds up linting step by ~10 seconds in total.
There are 3 primary changes:
pre-commit caching
pre-commit docs have an example of github caching which i applied: https://pre-commit.com/#github-actions-example
caching python dependencies
uv sync
dependencies will now be cached by disabling pruning:prune-cache: false
.I think you would need to removeupdated lock file will create new cachesetup-uv-*
caches at https://github.com/DS4SD/docling-serve/actions/caches for this to apply.Switching to pre-commit-uv
https://github.com/tox-dev/pre-commit-uv is a patch to pre-commit which uses uv internally which speeds up initial dependency installation. Their caching/configuration is identical, the only change is package installation machinery.
Currently it will be automatically installed as a dev dependency.
I can exclude this patch if this is not desirable