From b7a75cc514e031522397d29eede49d1598d15566 Mon Sep 17 00:00:00 2001 From: Joseph Burling Date: Mon, 25 Jul 2022 11:54:57 -0500 Subject: [PATCH] fix: keep output from notebooks --- .../{{cookiecutter.github_repo}}/.pre-commit-config.yaml | 4 +++- .../{{cookiecutter.github_repo}}/.pre-commit-config.yaml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/basic-package/{{cookiecutter.github_repo}}/.pre-commit-config.yaml b/basic-package/{{cookiecutter.github_repo}}/.pre-commit-config.yaml index b44246f..8367fc9 100644 --- a/basic-package/{{cookiecutter.github_repo}}/.pre-commit-config.yaml +++ b/basic-package/{{cookiecutter.github_repo}}/.pre-commit-config.yaml @@ -59,7 +59,9 @@ repos: rev: 0.5.0 hooks: - id: nbstripout - exclude: notebooks/01-pipeline-diagram.ipynb + args: + - "--keep-output" + - "--strip-empty-cells" # python linting - repo: https://github.com/pycqa/flake8 diff --git a/datajoint-workflow/{{cookiecutter.github_repo}}/.pre-commit-config.yaml b/datajoint-workflow/{{cookiecutter.github_repo}}/.pre-commit-config.yaml index c26cf05..86d9ead 100644 --- a/datajoint-workflow/{{cookiecutter.github_repo}}/.pre-commit-config.yaml +++ b/datajoint-workflow/{{cookiecutter.github_repo}}/.pre-commit-config.yaml @@ -59,6 +59,9 @@ repos: rev: 0.5.0 hooks: - id: nbstripout + args: + - "--keep-output" + - "--strip-empty-cells" # python linting - repo: https://github.com/pycqa/flake8