-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (48 loc) · 1.32 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (48 loc) · 1.32 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.0
hooks:
- id: ruff
exclude: ^(docs/|tests/|examples/)
args: [
"--fix",
"--exit-non-zero-on-fix",
"--target-version=py310",
"--line-length=100",
"--select=E,F,W,I,N,D,UP,B,C4,SIM,RUF",
"--ignore=N803,N806,D203,D212,E501,UP040",
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [
types-requests,
types-setuptools,
jaxlib,
numpy>=1.20.0,
pandas-stubs,
]
exclude: ^(docs/|tests/|examples/)
args: [
"--python-version=3.10",
"--warn-return-any",
"--warn-unused-configs",
"--check-untyped-defs",
"--strict-optional",
"--ignore-missing-imports",
]
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
files: ".ipynb"