From b2ca642bad3a3c35cf5ed212bd762ac6fc904fdc Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Sun, 16 Jan 2022 00:31:28 +0800 Subject: [PATCH] uniform project structure --- .pre-commit-config.yaml | 6 ++++++ main.py | 2 +- requirements.txt | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml create mode 100644 requirements.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..503b3fa --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: git@codechina.csdn.net:csdn/skill_tree_hook.git + rev: 8cb76ab3b493582d3dab0021fb6fddfa28ec5a66 + hooks: + - id: pre-commit + verbose: true \ No newline at end of file diff --git a/main.py b/main.py index ed3952b..78b4fc5 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from src.tree import TreeWalker +from skill_tree.tree import TreeWalker if __name__ == '__main__': walker = TreeWalker("data", "ai", "ai") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9305578 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +skill-tree-parser~=0.0.5 \ No newline at end of file -- GitLab