feat(pre-commit): trim unnecessary notebook metadata from git history (#2127)

This commit is contained in:
Xuehai Pan
2024-11-23 05:04:51 +08:00
committed by GitHub
parent 62a4a339eb
commit 72f87b723b
8 changed files with 143 additions and 614 deletions

View File

@@ -1,6 +1,3 @@
default_language_version:
python: python3.9
default_stages: [pre-commit, pre-push, manual]
repos:
@@ -28,7 +25,11 @@ repos:
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
types: [python]
- id: black-jupyter
types: [jupyter]
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
args:
- '--keep-output'
- '--extra-keys=metadata.kernelspec metadata.language_info.version'