| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- ---
- # 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
- files: ^(service/|proto/|lang/|Makefile)
- - id: frontend-codestyle
- name: frontend-codestyle
- entry: make frontend-codestyle
- language: system
- pass_filenames: false
- files: ^(frontend/|Makefile)
- - id: service-unittests
- name: service-unittests
- entry: make service-unittests
- language: system
- pass_filenames: false
- files: ^(service/|proto/|lang/|Makefile)
- - id: service-build
- name: service-build
- entry: make service
- language: system
- pass_filenames: false
- files: ^(service/|proto/|lang/|Makefile)
- - id: it
- name: integration-tests
- entry: make it
- language: system
- pass_filenames: false
- stages: [pre-push]
- files: ^(service/|frontend/|integration-tests/|proto/|Makefile)
|