From 4a7e8999cd0a90846fba9a9c4a43978990d3ed2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Sun, 24 Oct 2021 15:57:12 +0200 Subject: [PATCH 1/2] Create .pre-commit-hooks.yaml --- .pre-commit-hooks.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 00000000..9fba6ffe --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,5 @@ +- id: byexample + name: run code snippets in docstrings to validate them + description: avoids writing errorneous code snippets. + entry: byexample + language: python From 9c1c9037b2026f6f585ff82d2b58a6e32e1fa566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Sun, 24 Oct 2021 16:33:55 +0200 Subject: [PATCH 2/2] Update .pre-commit-hooks.yaml --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 9fba6ffe..7876f78b 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,3 +3,4 @@ description: avoids writing errorneous code snippets. entry: byexample language: python + require_serial: true