forked from pinterest/querybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
31 lines (30 loc) · 1.05 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: v4.2.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: 22.3.0
hooks:
- id: black
files: "^querybook/(server|tests)/.*\\.py$"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1'
hooks:
- id: prettier
files: "querybook/webapp/.*\\.[jt]sx?$"
additional_dependencies:
# - '@trivago/[email protected]' # removing it since pre-commit install fails
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
files: "^querybook/(server|tests)/.*\\.py$"
exclude: ^querybook/migrations/.*