fix: keep python bytecode out of the trusted scripts root

This commit is contained in:
2026-08-11 16:11:35 +02:00
parent a22d232aa2
commit f0a19a89eb
2 changed files with 3 additions and 3 deletions
@@ -137,7 +137,7 @@ sed '/^case "\$mode" in/,$d' "$root/scripts/verify-workspace-install-docs.sh" >"
# shellcheck source=/dev/null
source "$verifier_functions"
python3 "$root/scripts/test_workspace_descriptor_doc_contract.py"
PYTHONDONTWRITEBYTECODE=1 python3 "$root/scripts/test_workspace_descriptor_doc_contract.py"
project_topology_fixture="$negative_root/project-topology-contradiction.md"
python3 - "$root/PROJECT_STATE.md" "$project_topology_fixture" <<'PY'
+2 -2
View File
@@ -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