-
Notifications
You must be signed in to change notification settings - Fork 524
/
.pre-commit-config.yaml
44 lines (41 loc) · 1.17 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: check-added-large-files
args: [--maxkb=50]
- id: check-case-conflict
- id: check-merge-conflict
args: [--assume-in-merge]
- id: check-yaml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: no-commit-to-branch
args: [--branch, main]
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
types_or: [markdown, yaml]
- repo: https://github.com/nbQA-dev/nbQA
rev: "1.8.5"
hooks:
- id: nbqa-isort
additional_dependencies: [isort]
args: [--line-length=100, --sl]
- id: nbqa-black
additional_dependencies: [black]
args: [--line-length=100]
- id: nbqa-flake8
additional_dependencies: [flake8]
args: [--max-line-length=100]
- repo: local
hooks:
- id: nbconvert
name: clear notebook output
entry: jupyter nbconvert
language: system
types: [jupyter]
args: ["--clear-output", "--inplace"]