| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- ---
- # See https://pre-commit.com for more information
- # See https://pre-commit.com/hooks.html for more hooks
- repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v3.2.0
- hooks:
- - id: trailing-whitespace
- - id: end-of-file-fixer
- - id: check-yaml
- - id: check-added-large-files
- - id: check-merge-conflict
- - id: detect-private-key
- - id: mixed-line-ending
- args: ['--fix', 'lf']
- - id: check-json
- exclude: |
- (?x)^(
- service/internal/entities/testdata/.*\.json|
- integration-tests/tests/.*/entities/.*\.json|
- var/entities/.*\.json
- )$
- - id: check-case-conflict
- - id: detect-aws-credentials
- # Alternative semantic commit checker
- - repo: https://github.com/compilerla/conventional-pre-commit
- rev: v3.1.0
- hooks:
- - id: conventional-pre-commit
- stages: [commit-msg]
- args: [] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]
- - repo: local
- hooks:
- - id: service-codestyle
- name: service-codestyle
- entry: make service-codestyle
- language: system
- pass_filenames: false
- always_run: true
- - id: frontend-codestyle
- name: frontend-codestyle
- entry: make frontend-codestyle
- language: system
- pass_filenames: false
- always_run: true
- - id: service-unittests
- name: service-unittests
- entry: make service-unittests
- language: system
- pass_filenames: false
- always_run: true
- - id: service-build
- name: service-build
- entry: make service
- language: system
- pass_filenames: false
- always_run: true
- - id: it
- name: integration-tests
- entry: make it
- language: system
- pass_filenames: false
- always_run: true
|