Change default cache-dependency-glob

To support more users by default we should support popular dependency file formats.
A quick GitHub search shows ~40k uses of `constraint.txt` and ~16k uses of `requirements.in`.
This commit is contained in:
Kevin Stillhammer 2025-03-30 11:47:20 +02:00
parent 2d49baf2b6
commit 8b78f117be
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -196,7 +196,8 @@ changes. If you use relative paths, they are relative to the repository root.
> The default is > The default is
> ```yaml > ```yaml
> cache-dependency-glob: | > cache-dependency-glob: |
> **/requirements*.txt > **/*(requirements|constraints)*.(txt|in)
> **/pyproject.toml
> **/uv.lock > **/uv.lock
> ``` > ```

View file

@ -31,8 +31,9 @@ inputs:
"Glob pattern to match files relative to the repository root to control "Glob pattern to match files relative to the repository root to control
the cache." the cache."
default: | default: |
**/*(requirements|constraints)*.(txt|in)
**/pyproject.toml
**/uv.lock **/uv.lock
**/requirements*.txt
cache-suffix: cache-suffix:
description: "Suffix for the cache key" description: "Suffix for the cache key"
required: false required: false