command to run pydeps

This commit is contained in:
burnettk 2023-11-29 21:59:17 -05:00
parent af5402c6e4
commit f676fab480
2 changed files with 16 additions and 0 deletions

View File

@ -22,3 +22,4 @@ node_modules
/local_wheels/*.whl /local_wheels/*.whl
/some_cache_dir /some_cache_dir
/process.json /process.json
/spiffworkflow_backend.svg

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
function error_handler() {
>&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
exit "$2"
}
trap 'error_handler ${LINENO} $?' ERR
set -o errtrace -o errexit -o nounset -o pipefail
if ! command -v pydeps >/dev/null 2>&1; then
echo "pydeps is not installed. installing..."
pip install pydeps
fi
pydeps src/spiffworkflow_backend --display "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --only spiffworkflow_backend --rmprefix spiffworkflow_backend. --rankdir LR --exclude-exact spiffworkflow_backend.services.custom_parser spiffworkflow_backend.specs spiffworkflow_backend.services spiffworkflow_backend spiffworkflow_backend.models spiffworkflow_backend.load_database_models spiffworkflow_backend.routes --exclude spiffworkflow_backend.config spiffworkflow_backend.interfaces spiffworkflow_backend.models.db