-
Notifications
You must be signed in to change notification settings - Fork 184
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.21 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
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
args: [--ignore-missing-imports, --disallow-untyped-defs, --disallow-incomplete-defs, --disallow-untyped-calls]
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.1
hooks:
- id: autopep8
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ["--ignore=E501,W503,W504"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-json
- id: pretty-format-json
args: ["--autofix"]
exclude: ^configs/
- id: end-of-file-fixer
exclude: ^configs/
- id: requirements-txt-fixer
- id: double-quote-string-fixer
- id: check-merge-conflict
- id: mixed-line-ending
args: ["--fix=crlf"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2
hooks:
- id: pycln