forked from openvinotoolkit/workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (34 loc) · 1.03 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: no-commit-to-branch
args: ['--pattern', '^(master|releases\/)']
always_run: true
stages: [commit]
- repo: local
hooks:
- id: check-git-remote-pre-push
name: Check protected git remote before push
entry: python ./scripts/development/check_git_remote_pre_push.py
language: python
language_version: python3
pass_filenames: false
always_run: true
stages: [push]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: ''
hooks:
- id: prettier
name: Prettier auto-formatter for client
entry: bash -c 'prettier "$@"; git add -u' --
files: '^client/'
args: [
'--write',
'--list-different',
'--ignore-unknown',
'--config', './client/.prettierrc',
'--ignore-path', './client/.prettierignore'
]
require_serial: true
stages: [commit]