From c206f818c634a68978b2cfdc467dc27539a2e826 Mon Sep 17 00:00:00 2001 From: ashleve Date: Sat, 19 Feb 2022 19:17:14 +0100 Subject: [PATCH] Add nbstripout to pre-commit hooks (#252) - Add jupyter notebook output cell clearing before commit --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ee1fe3..0cb7374 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,3 +36,9 @@ repos: rev: 3.9.2 hooks: - id: flake8 + + # jupyter notebook cell output clearing + - repo: https://github.com/kynan/nbstripout + rev: 0.5.0 + hooks: + - id: nbstripout