From df5e9533698d379907d6c69a6e327601f74ae320 Mon Sep 17 00:00:00 2001 From: Vitor Shen <17490173+shenvitor@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:36:14 +0200 Subject: [PATCH] add --drop-empty-cells tag in pre-commmit hook --- src/compwa_policy/check_dev_files/nbstripout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compwa_policy/check_dev_files/nbstripout.py b/src/compwa_policy/check_dev_files/nbstripout.py index 3a0d1499..f2b3437e 100644 --- a/src/compwa_policy/check_dev_files/nbstripout.py +++ b/src/compwa_policy/check_dev_files/nbstripout.py @@ -53,6 +53,7 @@ def main(precommit: ModifiablePrecommit, allowed_cell_metadata: list[str]) -> No Hook( id="nbstripout", args=[ + "--drop-empty-cells", "--extra-keys", LiteralScalarString("\n".join(sorted(extra_keys_argument)) + "\n"), ],