From c0bbc21c19d37e0dcc3e703362ea4e2d47e5723c Mon Sep 17 00:00:00 2001 From: 100gle Date: Fri, 9 Jun 2023 13:13:28 +0800 Subject: [PATCH] chore: move `dev.sh` to `backend` folder and setup pre-commit --- dev.sh => backend/dev.sh | 3 +++ 1 file changed, 3 insertions(+) rename dev.sh => backend/dev.sh (87%) mode change 100755 => 100644 diff --git a/dev.sh b/backend/dev.sh old mode 100755 new mode 100644 similarity index 87% rename from dev.sh rename to backend/dev.sh index 60af0963..ec75e023 --- a/dev.sh +++ b/backend/dev.sh @@ -5,6 +5,9 @@ python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple install -r requirements-dev.txt +# install git-hooks for pre-commit before committing. +pre-commit install + cd src || exit CONFIG_DIR="config"