forked from broadinstitute/gnomad-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (37 loc) · 1.16 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
35
36
37
---
exclude: '\.snap$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.3.0 # This should be kept in sync with the version in requirements-dev.txt
hooks:
- id: black
language_version: python3
types: [python]
- repo: local
hooks:
- id: git-secrets pre-commit
name: git-secrets (pre-commit/push hook)
entry: git-secrets --pre_commit_hook --
language: system
stages: [commit, push]
- id: git-secrets commit-msg
name: git-secrets (commit-msg hook)
entry: git-secrets --commit_msg_hook --
language: system
stages: [commit-msg]
- id: git-secrets prepare-commit-msg
name: git-secrets (prepare-commit-msg hook)
entry: git-secrets --prepare_commit_msg_hook --
language: system
stages: [prepare-commit-msg]
- id: prettier
name: prettier
entry: yarn run prettier --write --list-different --ignore-unknown
language: system
stages: [commit]