Skip to content

Commit

Permalink
chore: Add pre-commit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Dec 30, 2021
1 parent ccaa339 commit f5254d2
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.20.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-json
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- id: trailing-whitespace
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: check-yaml
stages: [commit]
- id: check-added-large-files
stages: [commit]
- id: check-executables-have-shebangs
stages: [commit]
- id: detect-aws-credentials
stages: [commit]
- id: detect-private-key
stages: [commit]
- repo: https://github.com/pre-commit/mirrors-prettier
# Use the sha or branch you want to point at
rev: v2.4.1
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.1
hooks:
- id: shellcheck
stages: [commit]
- repo: local
hooks:
- id: backend-lint
stages: [commit]
files: \.go$
name: Backend Lint
entry: make
args:
- code/lint
require_serial: true
language: system

0 comments on commit f5254d2

Please sign in to comment.