chore: standardize security and quality foundations
This commit is contained in:
@@ -6,13 +6,21 @@ cd "$repo_root"
|
||||
|
||||
python_bin="${PYTHON_BIN:-python3}"
|
||||
|
||||
echo "Installing backend Python requirements"
|
||||
"$python_bin" -m pip install -r backend/requirements.txt
|
||||
echo "Installing backend Python requirements and quality tools"
|
||||
"$python_bin" -m pip install -r backend/requirements-dev.txt
|
||||
|
||||
echo "Running Python dependency integrity check"
|
||||
"$python_bin" -m pip check
|
||||
|
||||
echo "Running backend unit tests"
|
||||
"$python_bin" -m unittest discover -s backend/tests -p "test_*.py" -v
|
||||
echo "Auditing Python production dependencies"
|
||||
"$python_bin" -m pip_audit -r backend/requirements.txt --progress-spinner off
|
||||
|
||||
echo "Linting backend application code"
|
||||
"$python_bin" -m ruff check backend/app
|
||||
|
||||
echo "Running backend unit tests with coverage"
|
||||
"$python_bin" -m coverage erase
|
||||
"$python_bin" -m coverage run -m unittest discover -s backend/tests -p "test_*.py" -v
|
||||
"$python_bin" -m coverage report
|
||||
|
||||
echo "Backend quality gate passed"
|
||||
|
||||
Reference in New Issue
Block a user