-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
56 lines (55 loc) · 1.77 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
ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: name-tests-test
- id: requirements-txt-fixer
- id: debug-statements
- id: double-quote-string-fixer
- id: check-merge-conflict
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.7.0
hooks:
- id: setup-cfg-fmt
args: ["--min-py-version", "3.8"]
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black-jupyter
args: [--skip-string-normalization]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies: [numpy>=1.22.2]
# jupyter hooks
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1
hooks:
- id: nbqa
name: mypy-juypter
args: [mypy, --ignore-missing-imports, --scripts-are-modules]
additional_dependencies: [reorder-python-imports, mypy, numpy>=1.22.2]
- id: nbqa
name: Reorder python import-jupyter
args: [reorder_python_imports]
additional_dependencies: [reorder-python-imports]
# the hook below are called via an unsupported interface, this may break at some point
- id: nbqa
name: double-quote-string-fixer-jupyter
args: [pre_commit_hooks.string_fixer]
additional_dependencies: [pre-commit-hooks]
- id: nbqa
name: debug-statements-jupyter
args: [pre_commit_hooks.debug_statement_hook]
additional_dependencies: [pre-commit-hooks]