-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
69 lines (69 loc) · 2.55 KB
/
.pre-commit-hooks.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
- id: prepend-branch-name
name: prepend each commit message with the branch name
description: Ensures that all commits on a feature branch can be traced, useful if using rebase merge strategy
entry: prepend-branch-name/prepend-branch-name.sh
language: script
stages: [commit-msg]
- id: yarn-system-husky
name: Invoke husky
description: Wrapper around the call to husky to allow husky pre-commit hooks to be run
entry: yarn-system-husky/yarn-system-husky.sh
language: script
verbose: true
require_serial: true
stages: [pre-commit, prepare-commit-msg, commit-msg, pre-push, pre-merge-commit]
- id: check-django-migrations
name: Check django migrations
entry: check-django-migrations/check-django-migrations.sh
language: script
files: .+\/models.*\.py$
stages: [pre-commit]
require_serial: true
- id: check-django-missing-migrations
name: Check For uncommitted django migrations files
entry: check-django-missing-migrations/check-django-missing-migrations.sh
language: script
stages: [pre-commit]
require_serial: true
- id: check-openapi3-lint
name: Check For openapi3 linting errors
entry: ./check-openapi3-lint/check-openapi3-lint.sh
language: script
stages: [pre-commit]
require_serial: true
files: .+-api.yaml$
- id: check-openapi-version-control
name: Ensure openapi version number has been incremented alongside edits
entry: ./check-openapi-version-control/check-openapi-version-control.sh
language: script
stages: [pre-commit]
require_serial: true
files: .+-api.yaml$
- id: redocly-openapi-cli
name: redocly-openapi-cli
entry: openapi
language: node
stages: [pre-commit]
require_serial: false
additional_dependencies: ["@redocly/[email protected]"]
minimum_pre_commit_version: '0'
- id: circleci-config-validate
name: CircleCI config validation
description: Test if the CircleCI config is well formed.
stages: [pre-commit]
entry: circleci-validate/circleci-config-validate.sh
language: script
files: ^.circleci/config.yml$
- id: circleci-orb-pack-validation
name: CircleCI Orb construction validation
description: Test if the CircleCI orb is well formed.
stages: [pre-commit]
entry: circleci-orb-pack-validation/circleci-orb-pack-validation.sh
language: script
- id: replace-string-in-json-file
name: Replaces a string in a json file
stages: [pre-commit]
description: Used to replace fixed strings in json files using jq
entry: replace-string-in-json-file/replace-string-in-json-file.sh
# args: ['fromString', 'toString'] # if you want to override default arguments
language: script