Skip to content

Commit

Permalink
add code_format_and_analysis.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
simon824 committed Jan 23, 2024
1 parent 3a63fd6 commit bd1facd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions style/code_format_and_analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ fi

# Run BLACK if -b is specified
if [ "$BLACK" = true ] ; then
echo "[BLACK] Start to check code style and auto format"
echo "[black] Start to check code style and auto format"
# https://github.com/psf/BLACK/issues/1802
black --line-length=100 ../
fi

# Run PYLINT if -p is specified
if [ "$PYLINT" = true ] ; then
echo "[PYLINT] Start code analysis and check,
echo "[pylint] Start code analysis and check,
we need to manually fix all the warnings mentioned below before commit! "
export PYTHONPATH=${ROOT_DIR}/hugegraph-llm/src:${ROOT_DIR}/hugegraph-python-client/src
pylint --rcfile=${ROOT_DIR}/style/PYLINT.conf ${ROOT_DIR}/hugegraph-llm
#pylint --rcfile=${ROOT_DIR}/style/PYLINT.conf ${ROOT_DIR}/hugegraph-python-client
pylint --rcfile=${ROOT_DIR}/style/pylint.conf ${ROOT_DIR}/hugegraph-llm
#pylint --rcfile=${ROOT_DIR}/style/pylint.conf ${ROOT_DIR}/hugegraph-python-client
fi

0 comments on commit bd1facd

Please sign in to comment.