Skip to content

Commit

Permalink
chore: add stage_fixed to lefthook (#29)
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 authored Jul 9, 2024
1 parent 6e39e83 commit 4485a78
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 4485a78

Please sign in to comment.