Skip to content

Commit e529350

Browse files
committed
Use --frozen instead
1 parent 4733145 commit e529350

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

lefthook.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
lefthook: pixi run --no-progress --environment=lint lefthook
1+
lefthook: pixi run --no-progress --environment=lint --frozen lefthook
2+
3+
templates:
4+
run: run --quiet --no-progress --environment=lint --frozen
25

36
colors: true
47

@@ -19,35 +22,35 @@ pre-commit:
1922
- name: dprint
2023
glob: "*.{json,jsonc,md,toml,yaml,yml}"
2124
stage_fixed: true
22-
run: dprint fmt
25+
run: pixi {run} dprint
2326
- name: ruff
2427
glob: "*.{py,pyi}"
2528
stage_fixed: true
2629
group:
2730
piped: true
2831
jobs:
2932
- name: ruff check
30-
run: ruff check --fix {staged_files}
33+
run: pixi {run} ruff-check {staged_files}
3134
- name: ruff format
32-
run: ruff format {staged_files}
35+
run: pixi {run} ruff-format {staged_files}
3336
- name: pyright
3437
glob: "*.{py,pyi}"
35-
run: basedpyright
38+
run: pixi {run} pyright
3639
- name: mypy
3740
glob: "*.{py,pyi}"
38-
run: mypy
41+
run: pixi {run} mypy
3942
- name: typos
4043
stage_fixed: true
41-
run: typos --write-changes --force-exclude
44+
run: pixi {run} typos
4245
- name: actionlint
43-
run: actionlint
46+
run: pixi {run} actionlint
4447
- name: blacken-docs
4548
glob: "*.md"
4649
stage_fixed: true
47-
run: blacken-docs {staged_files}
50+
run: pixi {run} blacken-docs {staged_files}
4851
- name: validate-pyproject
4952
glob: "pyproject.toml"
50-
run: validate-pyproject pyproject.toml
53+
run: pixi {run} validate-pyproject
5154
- name: numpydoc
5255
glob: "*.py"
53-
run: numpydoc lint {staged_files}
56+
run: pixi {run} numpydoc {staged_files}

0 commit comments

Comments
 (0)