Skip to content

Commit

Permalink
add pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Dec 15, 2024
1 parent 5988874 commit 18272e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ repos:
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
6 changes: 4 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ publish:
uv publish --token $PYPI_TOKEN

hook:
echo "just lint" > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
uv run pre-commit install

unhook:
uv run pre-commit uninstall

0 comments on commit 18272e2

Please sign in to comment.