-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
48 lines (45 loc) · 1.36 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
40
41
42
43
44
45
46
47
48
# 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.
^.*.md| # 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
- --meta
- tags
- repo: https://github.com/mwouts/jupytext
rev: v1.15.1 # ensure equal to main venv
hooks:
- id: jupytext
args: [--sync]
# Too stringent for now
# - repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.5.0
# hooks:
# - id: ruff
# - id: ruff-format