初始化项目,由ModelHub XC社区提供模型

Model: nv-community/Nemotron-Cascade-8B
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-04-24 22:32:56 +08:00
commit c979c18a17
174 changed files with 62291 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#!/bin/sh
# Get relative path of the root directory of the project
rdir=`git rev-parse --git-dir`
rel_path="$(dirname "$rdir")"
# Change to that path and run the file
cd $rel_path
echo "pre-commit hook started..."
# Activate virtual environment
echo "activating venv..."
if test -f .env/bin/activate
then source .env/bin/activate && echo "venv activated."
elif test -f .env/Scripts/activate
then source .env/Scripts/activate && echo "venv activated."
else exit 1
fi
# Run auto formatting on all staged python files, then add those changes
echo "auto-formatting code..."
if autopep8 --in-place `git diff --name-status --cached | grep '.py' | awk 'match($1, "A|M"){print $2}'` && git add `git diff --name-status --cached | grep '.py' | awk 'match($1, "A|M"){print $2}'`
then echo "code was auto-formatted."
else echo "no code was auto-formatted."
fi
exit 0