forked from pinterest/querybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
31 lines (31 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
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
- 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/prettier/pre-commit
rev: v2.0.2
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