-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
41 lines (37 loc) · 1.07 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
default_language_version:
node: 17.9.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
args: [-l 120]
additional_dependencies: ["click==8.0.4"]
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
args: [--profile, black, -l, "120", --lines-after-imports, "2"]
- repo: https://git.evocargo.org/thirdparty/flake8
rev: 3.9.2
hooks:
- id: flake8
name: flake8 (py3)
args:
[--max-line-length=120, "--ignore=E203,E231,W503,E266,B301,B028,E402"]
additional_dependencies: [flake8-bugbear]
language_version: python3
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
args: [--print-width=80, --prose-wrap=always]