Skip to content

Commit

Permalink
add pre-commit config
Browse files Browse the repository at this point in the history
add pre-commit
  • Loading branch information
chmouel authored and vdemeester committed Jun 6, 2024
1 parent 6eb2971 commit c5e71b5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: ["pre-push"]
exclude: "(^vendor|.*golden$)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-shebang-scripts-are-executable
- id: check-json
- id: check-vcs-permalinks
- repo: local
hooks:
- id: lint-go
name: "Lint GO"
entry: make
args: ["lint-go"]
language: system
types: [go]
pass_filenames: false
- id: test
name: "Unit testing"
entry: make
args: ["e2e-docker"]
language: system
types: [go]
pass_filenames: false

0 comments on commit c5e71b5

Please sign in to comment.