forked from pinterest/querybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (32 loc) · 1.08 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
exclude: ^querybook/webapp/__tests__/ui/__snapshots__/
- id: end-of-file-fixer
- id: check-yaml
exclude: ^helm/templates/
- id: check-added-large-files
args: ['--maxkb=10000']
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
files: "^querybook/(server|tests)/.*\\.py$"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
hooks:
- id: prettier
files: "^querybook/webapp/.*\\.(tsx?)$"
- repo: https://gitlab.com/pycqa/flake8
rev: '3.7.9'
hooks:
- id: flake8
files: "^querybook/(server|tests)/.*\\.py$"
exclude: ^querybook/migrations/.*
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: '6.8.0' # Use the sha / tag you want to point at
# files: 'querybook/webapp/.*\\.(tsx?)$'
# hooks:
# - id: eslint