-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 1.18 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
args:
- --unsafe
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
args:
- -i
- column_limit = 88
- based_on_style = "google"
- split_before_logical_operator = true
- split_before_arithmetic_operator = true
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
- "pydantic>=2.0,<3.0"
args:
- --strict-optional
- --ignore-missing-imports
- --warn-redundant-casts
- --disallow-any-generics
- --check-untyped-defs
- --disallow-untyped-defs