-
Notifications
You must be signed in to change notification settings - Fork 52
/
.pre-commit-config.yaml
34 lines (32 loc) · 1.14 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
# Use `pre-commit autoupdate --bleeding-edge` to set to most recent version
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: detect-private-key
- id: check-merge-conflict
- id: debug-statements
- id: requirements-txt-fixer
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=no']
- id: trailing-whitespace
exclude: |
(?x)( # make whitespace in this regex insignificant and allow comments
^README.md| # I use double-space line-endings a lot in my MD.
^notebooks/resources/answers.py| # MD also used in answers.
^notebooks/scripts/.*.py| # MD also used in answers.
)
- repo: https://github.com/patnr/nbhooks.git
rev: v1.4.1
hooks:
- id: nb-ensure-clean
# Optional WHITELIST of metadata keys (you can use regex)
args: [--meta, pin_output, --meta, lines_to_next_cell, --meta, lines_to_end_of_cell_marker]
- repo: https://github.com/mwouts/jupytext
rev: v1.15.1
hooks:
- id: jupytext
args: [--sync]