From f931a0d970eb16ede1a6c87b68914c9a0ccffd5f Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Thu, 2 Dec 2021 18:53:20 +0800 Subject: [PATCH] add git hook --- .pre-commit-config.yaml | 6 ++++++ requirement.txt | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2fcecf4 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: git@codechina.csdn.net:csdn/skill_tree_hook.git + rev: c1fbfe8805a7754a9d5c85bcf0b112ddad086075 + hooks: + - id: pre-commit + verbose: true \ No newline at end of file diff --git a/requirement.txt b/requirement.txt index e69de29..f060081 100644 --- a/requirement.txt +++ b/requirement.txt @@ -0,0 +1,2 @@ +pre_commit~=2.16.0 +GitPython~=3.1.24 \ No newline at end of file -- GitLab