Standardize code styling
This commit is contained in:
parent
40494e8f63
commit
e23b767a72
@ -1,4 +1,4 @@
|
|||||||
# include/run_bootstrap: Install application dependencies
|
# run_bootstrap: Install application dependencies
|
||||||
|
|
||||||
# Load bootstrap functions
|
# Load bootstrap functions
|
||||||
source ./script/include/bootstrap_functions.inc.sh
|
source ./script/include/bootstrap_functions.inc.sh
|
||||||
@ -10,7 +10,6 @@ if [ -z "${PIPENV_INSTALL_FLAGS+is_set}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## Main
|
## Main
|
||||||
|
|
||||||
if [ "${INSTALL_PYTHON_PACKAGES}" = "true" ]; then
|
if [ "${INSTALL_PYTHON_PACKAGES}" = "true" ]; then
|
||||||
install_python_packages "${PIPENV_INSTALL_FLAGS}"
|
install_python_packages "${PIPENV_INSTALL_FLAGS}"
|
||||||
fi
|
fi
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# include/run_test: Execute code checkers and unit tests
|
# run_test: Execute code checkers and unit tests
|
||||||
|
|
||||||
# Load test functions
|
# Load test functions
|
||||||
source ./script/include/test_functions.inc.sh
|
source ./script/include/test_functions.inc.sh
|
||||||
|
@ -2,12 +2,14 @@
|
|||||||
|
|
||||||
run_python_lint() {
|
run_python_lint() {
|
||||||
local python_files="${1}"
|
local python_files="${1}"
|
||||||
|
|
||||||
run_command "pylint ${python_files}"
|
run_command "pylint ${python_files}"
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
run_python_static_analysis() {
|
run_python_static_analysis() {
|
||||||
local python_files="${1}"
|
local python_files="${1}"
|
||||||
|
|
||||||
run_command "bandit -c ./.bandit_config -r ${python_files}"
|
run_command "bandit -c ./.bandit_config -r ${python_files}"
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user