-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (30 loc) · 932 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (30 loc) · 932 Bytes
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
repos:
# Clean notebook metadata
- repo: local
hooks:
- id: clean-notebook-metadata
name: Clean notebook metadata
entry: python scripts/clean_notebook_metadata.py
language: system
files: '\.ipynb$'
pass_filenames: true
- id: replace-rdm-urls
name: Replace rdm.nii.ac.jp URLs
entry: python scripts/replace_rdm_url.py
language: system
files: '\.ipynb$'
pass_filenames: true
- id: clean-sensitive-outputs
name: Clean sensitive outputs
entry: python scripts/clean_output.py
language: system
files: '\.ipynb$'
pass_filenames: true
# Detect secrets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
name: Detect secrets
entry: gitleaks protect --verbose --redact --staged --config .gitleaks.toml
pass_filenames: false