Skip to content

Commit 4a06130

Browse files
build: add nb-clean to pre-commit config and clean config
1 parent e6c662a commit 4a06130

13 files changed

Lines changed: 7905 additions & 8894 deletions

.git-blame-ignore-revs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# Run this command to always ignore formatting commits in `git blame`
2-
# git config blame.ignoreRevsFile .git-blame-ignore-revs
3-
4-
# Run pre-commit to fix end-of-file-fixer and trailing-whitespace (#3418)
5-
fe5a29b6942829ff2870181b6c1a68ebd2af9add
6-
# Fix code style (#3423)
7-
f9e8ca106a0d3f386f26f3a9481fd2eb341999f0
1+
# Run this command to always ignore formatting commits in `git blame`
2+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
3+
4+
# Run pre-commit to fix end-of-file-fixer and trailing-whitespace (#3418)
5+
fe5a29b6942829ff2870181b6c1a68ebd2af9add
6+
# Fix code style (#3423)
7+
f9e8ca106a0d3f386f26f3a9481fd2eb341999f0
8+
# Add nb-clean to pre-commit config (#3618)
9+
0c98ba17b275cdf0f02f175c7a89013fbb4a9a24

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
exclude: "^conda.recipe|assets|docs"
2+
23
repos:
4+
- repo: https://github.com/srstevenson/nb-clean
5+
rev: 3.2.0
6+
hooks:
7+
- id: nb-clean
8+
args:
9+
- --preserve-cell-outputs
10+
- --remove-empty-cells
11+
types: [jupyter]
12+
313
- repo: https://github.com/pre-commit/pre-commit-hooks
414
rev: v5.0.0
515
hooks:

0 commit comments

Comments
 (0)