Skip to content

Commit

Permalink
feat: add compatibility with pre-commit.com
Browse files Browse the repository at this point in the history
pre-commit.com is a hook framework for automatically configuring a
repository to incorporate specified hooks for all developers

Signed-off-by: Joey Espinosa <[email protected]>
  • Loading branch information
particledecay authored and andrewrynhard committed Feb 20, 2020
1 parent d97b22c commit ea7199a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# install with `pre-commit install -t commit-msg`
repos:
- repo: https://github.com/talos-systems/conform
rev: master
hooks:
- id: conform
stages:
- commit-msg
7 changes: 7 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- id: conform
name: Conform
description: Run 'conform enforce' for policy enforcement
entry: conform enforce --commit-msg-file
language: golang
stages: [commit-msg]

0 comments on commit ea7199a

Please sign in to comment.