-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.pre-commit-config.yaml
39 lines (32 loc) · 1.04 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: [ '--maxkb=1000' ]
- id: check-merge-conflict
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: fix-byte-order-marker
- id: check-ast
# Notebook formatting
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1
hooks:
- id: nbqa-isort
additional_dependencies: [ isort ]
- id: nbqa-pyupgrade
additional_dependencies: [ pyupgrade ]
args: [ --py39-plus ]
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
args: [ --extra-keys=metadata.language_info.codemirror_mode.version metadata.kernelspec metadata.language_info.pygments_lexer metadata.language_info.version ]
# needs rust, only activate if needed
# - repo: https://github.com/shssoichiro/oxipng
# rev: v9.1.3
# hooks:
# - id: oxipng
# args: [ "--", "--best", "--strip", "all", "--quiet" ]