forked from jupyter-widgets/ipydatagrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
57 lines (57 loc) · 1.57 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/asottile/pyupgrade
rev: v2.10.0
hooks:
- id: pyupgrade
args: ['--py36-plus']
- repo: https://github.com/psf/black
rev: 21.4b0
hooks:
- id: black
args: [--safe]
- repo: https://github.com/tomcatling/black-nb
rev: 0.5.0
hooks:
- id: black-nb
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies:
- 'flake8-bugbear == 20.11.1'
- 'flake8-unused-arguments == 0.0.6'
- 'flake8-comprehensions == 3.3.1'
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.16.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: '0.5.0'
hooks:
- id: tox-ini-fmt
args: ['-p', 'fix_lint']
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v7.29.0'
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
args: ['--fix']
additional_dependencies:
- [email protected] # prettier used with eslint directly
- '@typescript-eslint/eslint-plugin'
- '@typescript-eslint/parser'