From ab7fe019a9b08414618acf235866fcd7f4acd0b1 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Sat, 15 Jan 2022 23:09:44 +0800 Subject: [PATCH] uniform project structure --- .pre-commit-config.yaml | 6 ++++++ main.py | 5 +++-- requirements.txt | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) 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 08e822c..4de15a1 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ -from src.tree import gen_tree +from skill_tree.tree import TreeWalker if __name__ == '__main__': - gen_tree('data') + walker = TreeWalker("data", "web", "Web") + walker.walk() 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