Skip to content

Commit

Permalink
build: use frozen dependencies when running mypy in pre-commit (#1841)
Browse files Browse the repository at this point in the history
... otherwise it might update `uv.lock` which will create a pre-commit
error because of changed files. See also
astral-sh/uv#10845
  • Loading branch information
havogt authored Jan 31, 2025
1 parent c06cac3 commit 6f83598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ repos:
hooks:
- id: mypy
name: mypy static type checker
entry: uv run mypy --no-install-types src/
entry: uv run --frozen mypy --no-install-types src/
language: system
types_or: [python, pyi]
pass_filenames: false
Expand Down

0 comments on commit 6f83598

Please sign in to comment.