From 61f50c235d82ad6193a400b69c87f132b2ab8238 Mon Sep 17 00:00:00 2001 From: cyyc1 <114281716+cyyc1@users.noreply.github.com> Date: Thu, 6 Oct 2022 01:32:08 -0700 Subject: [PATCH] Add pre commit hook --- .pre-commit-hooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f8523d4..0cd225a 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -125,6 +125,12 @@ entry: double-quote-string-fixer language: python types: [python] +- id: double-quote-string-fixer-jupyter-notebooks + name: fix double quoted strings in Jupyter notebooks + description: replaces double quoted strings with single quoted strings in Jupyter notebooks. + entry: double-quote-string-fixer-jupyter-notebooks + lanbuage: python + files: (^|/).*\.ipynb$ - id: end-of-file-fixer name: fix end of files description: ensures that a file is either empty, or ends with one newline.