-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
61 lines (55 loc) · 1.64 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
58
59
60
61
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
hooks:
- id: yamllint
args:
- "-d relaxed"
files: ^app\/config\/.*
- repo: https://github.com/ambv/black
rev: 24.8.0
hooks:
- id: black
args: [--target-version=py310, --line-length=120]
language_version: python3.10
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
args:
[--no-strict-optional, --ignore-missing-imports, --show-error-codes]
additional_dependencies: ["types-PyYAML"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.7.4
hooks:
- id: pylint
exclude: "tests"
args:
[
--max-line-length=120,
--disable=design,
--disable=missing-docstring,
--disable=bad-continuation,
--disable=max-module-lines,
--disable=useless-super-delegation,
--disable=import-error,
--disable=logging-fstring-interpolation,
--disable=invalid-name,
--disable=duplicate-code,
--disable=broad-except,
--disable=logging-format-interpolation,
--disable=too-many-lines,
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
args: [--max-line-length=120, "--ignore=E203,W503"]