-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.01 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: pretty-format-json
types: [text]
files: \.(json|abi)$
args:
- "--autofix"
- "--no-sort-keys"
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
args:
- "--max-line-length=88"
- "--max-complexity=18"
- "--select=B,C,E,F,W,T4,B9"
- "--ignore=W503,E203"
- "--per-file-ignores=__init__.py:F401"
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args:
- "--multi-line=3"
- "--use-parentheses"
- "--trailing-comma"
- repo: https://github.com/psf/black
rev: "refs/tags/24.1.1:refs/tags/24.1.1"
hooks:
- id: black