forked from urancon/deepSTRF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
26 lines (24 loc) · 958 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
26 lines (24 loc) · 958 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
# Pre-commit hooks for deepSTRF.
# Activate once per clone with:
# pip install -e ".[dev]"
# pre-commit install
# After that, hooks run automatically on every `git commit`.
repos:
# Basic hygiene: trailing whitespace, end-of-file newline, large files guard.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
args: [--maxkb=5000] # refuse staging a file >5 MB (data should never be staged)
# Strip outputs from dataset-exploration notebooks so they don't balloon.
# Scoped to test_*.ipynb only — fit_*.ipynb keep their outputs (they show
# meaningful model-fit results and are small enough to ship as-is).
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
files: ^docs/_source/ipynb/test_.*\.ipynb$