Use --frozen in pre-commit config (#1375)
Some checks failed
Main branch checks / checks (push) Has been cancelled
Some checks failed
Main branch checks / checks (push) Has been cancelled
This commit is contained in:
parent
b41b9175e8
commit
ca34666663
1 changed files with 4 additions and 4 deletions
|
|
@ -25,14 +25,14 @@ repos:
|
|||
hooks:
|
||||
- id: ruff-format
|
||||
name: Ruff Format
|
||||
entry: uv run ruff
|
||||
entry: uv run --frozen ruff
|
||||
args: [format]
|
||||
language: system
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
- id: ruff
|
||||
name: Ruff
|
||||
entry: uv run ruff
|
||||
entry: uv run --frozen ruff
|
||||
args: ["check", "--fix", "--exit-non-zero-on-fix"]
|
||||
types: [python]
|
||||
language: system
|
||||
|
|
@ -40,7 +40,7 @@ repos:
|
|||
exclude: ^README\.md$
|
||||
- id: pyright
|
||||
name: pyright
|
||||
entry: uv run pyright
|
||||
entry: uv run --frozen pyright
|
||||
language: system
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
|
|
@ -52,7 +52,7 @@ repos:
|
|||
pass_filenames: false
|
||||
- id: readme-snippets
|
||||
name: Check README snippets are up to date
|
||||
entry: uv run scripts/update_readme_snippets.py --check
|
||||
entry: uv run --frozen python scripts/update_readme_snippets.py --check
|
||||
language: system
|
||||
files: ^(README\.md|examples/.*\.py|scripts/update_readme_snippets\.py)$
|
||||
pass_filenames: false
|
||||
|
|
|
|||
Loading…
Reference in a new issue