-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
27 lines (27 loc) · 961 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [ commit, push ]
repos:
# pre-commit formatting hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 # Replace by any tag/version:
hooks:
- id: trailing-whitespace
- id: check-case-conflict
- id: end-of-file-fixer
- id: check-yaml
args: ["--unsafe"]
- id: check-added-large-files
args: [ '--maxkb=1024' ]
- id: mixed-line-ending
- id: fix-encoding-pragma
- id: debug-statements
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
# - id: no-commit-to-branch # personal project - just do main directly for now
# - repo: https://github.com/fastai/nbdev
# rev: 2.3.13
# hooks:
# # - id: nbdev_clean - i'll keep the notebook output for now
# # - id: nbdev_export - no library needed