fix: keep python bytecode out of the trusted scripts root
This commit is contained in:
@@ -107,7 +107,7 @@ PY
|
||||
|
||||
verify_workspace_descriptor_doc_contract() {
|
||||
local source="$1" label="$2"
|
||||
if ! python3 "$root/scripts/workspace_descriptor_doc_contract.py" --document "$source"; then
|
||||
if ! PYTHONDONTWRITEBYTECODE=1 python3 "$root/scripts/workspace_descriptor_doc_contract.py" --document "$source"; then
|
||||
echo "$label violates the workspace descriptor documentation contract" >&2
|
||||
return 1
|
||||
fi
|
||||
@@ -678,7 +678,7 @@ verify_vector_helper_interfaces() {
|
||||
verify_project_state_current_contract() {
|
||||
local source="${1:-$root/PROJECT_STATE.md}"
|
||||
local label="${2:-PROJECT_STATE.md}"
|
||||
if ! python3 "$root/scripts/workspace_descriptor_doc_contract.py" --project-state "$source"; then
|
||||
if ! PYTHONDONTWRITEBYTECODE=1 python3 "$root/scripts/workspace_descriptor_doc_contract.py" --project-state "$source"; then
|
||||
echo "$label violates the workspace descriptor documentation contract" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user