-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.1 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
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: no-commit-to-branch
args: ["--branch", "main"]
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
hooks:
- id: ruff
types_or: [
python,
pyi,
jupyter,
]
args: [--fix]
- id: ruff-format
types_or: [
python,
pyi,
jupyter,
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
args: [
--strict,
--ignore-missing-imports,
--disable-error-code=misc,
--disable-error-code=no-any-return,
]
additional_dependencies: [
types-requests<2.33,
types-toml<0.11,
types-tqdm<4.67,
]