Skip to content

Commit

Permalink
chore: add stage_fixed to lefthook
Browse files Browse the repository at this point in the history
Lefthook was leaving files behind whenever there was any formatting or
linting changes. This should fix it.
  • Loading branch information
serramatutu committed Jul 9, 2024
1 parent ff875b2 commit 242d37a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Chore-20240709-115016.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Chore
body: Add `stage_fix` to lefthook hooks
time: 2024-07-09T11:50:16.68638+02:00
2 changes: 2 additions & 0 deletions lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ pre-commit:
commands:
ruff-format:
run: "hatch run dev:ruff format"
stage_fixed: true
ruff-lint:
run: "hatch run dev:ruff check --fix"
stage_fixed: true
pyright:
run: "hatch run dev:basedpyright"

Expand Down

0 comments on commit 242d37a

Please sign in to comment.