Skip to content

Commit

Permalink
ci: Use lefthook instead of pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Nov 30, 2024
1 parent 8987150 commit 890139d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .pre-commit-config.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Important!
# This hooks require uv to

pre-commit:
parallel: true
commands:
ruff:
glob: '*.py'
run: 'uvx ruff format {staged_files}'
stage_fixed: true
mypy:
glob: '*.py'
exclude:
- '**/conf.py'
run: 'uv run mypy {staged_files}'
doc8:
glob: '*.rst'
run: 'uvx doc8 --max-line-length=119 {staged_files}'

0 comments on commit 890139d

Please sign in to comment.