From a6af0f6e1353474d286bd767ece82fa42be9a929 Mon Sep 17 00:00:00 2001 From: gongweibao Date: Wed, 8 Mar 2017 14:41:16 +0800 Subject: [PATCH] moidfy .pre-commit-config.yaml --- .pre-commit-config.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5f1e62b..a54124c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ files: \.md$ - id: trailing-whitespace files: \.md$ -- repo: https://github.com/Lucas-C/pre-commit-hooks +- repo: git://github.com/Lucas-C/pre-commit-hooks sha: v1.0.1 hooks: - id: forbid-crlf @@ -32,3 +32,11 @@ entry: python pre-commit-hooks/convert_markdown_into_html.py language: system files: \.md$ +- repo: local + hooks: + - id: convert-markdown-into-ipynb + name: convert-markdown-into-ipynb + description: "Convert README.md into README.ipynb and README.en.md into README.en.ipynb" + entry: ./pre-commit-hooks/convert_markdown_into_ipynb.sh + language: system + files: \.md$ -- GitLab