-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.1 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
38
39
40
repos:
- repo: https://github.com/python/black
rev: 19.10b0
hooks:
- id: black
language_version: python3
files: ".*.py$"
args:
- "-l 120"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: flake8
entry: python3
name: flake8
files: ".*.py$"
args:
- "-m"
- "flake8"
- "--config=.flake8"
language: python
types: [python]
require_serial: true
- repo: local
hooks:
- id: pretty-quick
name: pretty-quick
entry: node_modules/.bin/pretty-quick
language: node
files: ".*.(js|jsx|ts|tsx|json|md)$"
args:
- "--staged"
- id: prettier
name: prettier
entry: node_modules/.bin/prettier
language: node
files: ".*.(js|jsx|ts|tsx|json|md)$"
args:
- "--config=.prettierrc"
- "-l"