Skip to content

Commit

Permalink
build: replace commitlint with lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Jul 13, 2020
1 parent 8e1f739 commit 0ff0439
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .commitlintrc.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .pre-commit-config.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pre-commit:
parallel: true
commands:
lint:
glob: "*.py"
run: ./.venv/bin/flake8 {staged_files}
format:
glob: "*.rs"
run: ./.venv/bin/isort {staged_files} && ./.venv/bin/black {staged_files} && git add {staged_files}

commit-msg:
commands:
commitlint:
run: commitlint -e -x @commitlint/config-conventional

0 comments on commit 0ff0439

Please sign in to comment.