Skip to content

Commit 3b6f449

Browse files
Add .pre-commit-config.yaml
1 parent 5aff71b commit 3b6f449

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.pre-commit-config.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
default_language_version:
2+
python: python3.9
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.5.0
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-docstring-first
9+
- id: check-merge-conflict
10+
- id: check-yaml
11+
- id: debug-statements
12+
- id: end-of-file-fixer
13+
- id: no-commit-to-branch
14+
args: ["--branch", "main"]
15+
- id: trailing-whitespace
16+
- repo: https://github.com/astral-sh/ruff-pre-commit
17+
rev: v0.3.4
18+
hooks:
19+
- id: ruff
20+
types_or: [
21+
python,
22+
pyi,
23+
jupyter,
24+
]
25+
args: [--fix]
26+
- id: ruff-format
27+
types_or: [
28+
python,
29+
pyi,
30+
jupyter,
31+
]
32+
- repo: https://github.com/pre-commit/mirrors-mypy
33+
rev: v1.9.0
34+
hooks:
35+
- id: mypy
36+
args: [
37+
--strict,
38+
--ignore-missing-imports,
39+
--disable-error-code=misc,
40+
--disable-error-code=no-any-return,
41+
]
42+
additional_dependencies: [
43+
types-requests<2.32,
44+
types-toml<0.11,
45+
types-tqdm<4.67,
46+
]

0 commit comments

Comments
 (0)