Skip to content

Commit

Permalink
chore: use pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zlodes committed Apr 21, 2024
1 parent ce3ddc2 commit 1ef4868
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .git-hooks/commit-msg

This file was deleted.

28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
default_install_hook_types:
- pre-commit
- commit-msg
- prepare-commit-msg

default_stages: [pre-commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-xml
- id: check-added-large-files
args: [ '--maxkb=50' ]

- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.1.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: [ --strict ]

0 comments on commit 1ef4868

Please sign in to comment.