Skip to content

Commit 09729a6

Browse files
daavoonjbrake
andauthored
chore: Bring back lint cache. (#713)
Include `run-mypy` fix from mozilla-ai/any-llm@fdd6725 Co-authored-by: Nathan Brake <nathan@mozilla.ai> Co-authored-by: Nathan Brake <33383515+njbrake@users.noreply.github.com>
1 parent 471f672 commit 09729a6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/lint.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,19 @@ jobs:
2424
- name: Install pre-commit
2525
run: uv sync --group lint
2626

27+
- uses: actions/cache@v4
28+
with:
29+
path: .mypy_cache
30+
key: ${{ runner.os }}-mypy-${{ hashFiles('pyproject.toml') }}
31+
restore-keys: |
32+
${{ runner.os }}-mypy-
33+
34+
- uses: actions/cache@v4
35+
with:
36+
path: ~/.cache/pre-commit
37+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pre-commit-
40+
2741
- name: pre-commit
2842
run: uv run pre-commit run --all-files --verbose

scripts/run-mypy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd "$(dirname "$0")/.."
88

99
# Install the dependencies into the mypy env.
1010
# Note that this can take seconds to run.
11-
python -m pip install -e '.[all,a2a,any_llm]' --quiet
11+
python -m pip install -U -e '.[all,a2a,any_llm]' --quiet
1212

1313
# Run on all files.
1414
python -m mypy src/

0 commit comments

Comments
 (0)