-
Notifications
You must be signed in to change notification settings - Fork 486
/
.pre-commit-config.yaml
50 lines (47 loc) · 1.34 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
hooks:
- id: check-added-large-files
args: [--maxkb=50]
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
args: [--assume-in-merge]
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- 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.0.3"
hooks:
- id: prettier
types_or: [markdown, yaml]
- repo: https://github.com/nbQA-dev/nbQA
rev: "1.7.1"
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"]