-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.pre-commit-config.yaml
39 lines (38 loc) · 1.06 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
exclude: 'Past_Conferences_and_Schools/' # ignores the unmaintained notebooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: detect-private-key
description: "Check accidental private keys in code"
- id: trailing-whitespace
exclude_types:
- "svg"
description: "Remove trailing whitespaces"
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.2
hooks:
- id: markdown-toc
name: markdown-toc
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
hooks:
- id: nbqa-black
name: nbqa-black
description: "Run 'black' on a Jupyter Notebook"
language: python
require_serial: true
- id: nbqa-isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
fail_fast: true
- repo: local
hooks:
- id: nbconvert
name: nbconvert
entry: python3 -m jupyter nbconvert --ClearMetadataPreprocessor.enabled=True --inplace
language: system
files: \.ipynb$
require_serial: true