-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (34 loc) · 1006 Bytes
/
.pre-commit-config.yaml
File metadata and controls
38 lines (34 loc) · 1006 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
34
35
36
37
38
repos:
- repo: local
hooks:
- id: numeric-execution-count
name: numeric-execution-count
entry: bash -c '! (find nblibrary -name "*.ipynb" | xargs grep -l "execution_count.*[0-9]" && echo "ERROR need to clean notebooks listed above")'
language: system
pass_filenames: false
- 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: debug-statements
- id: check-docstring-first
- id: check-json
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black-jupyter
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--max-line-length=120]