diff --git a/scripts/test-verify-workspace-install-docs.sh b/scripts/test-verify-workspace-install-docs.sh index e4555708..07edc51e 100755 --- a/scripts/test-verify-workspace-install-docs.sh +++ b/scripts/test-verify-workspace-install-docs.sh @@ -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' diff --git a/scripts/verify-workspace-install-docs.sh b/scripts/verify-workspace-install-docs.sh index 9947a0ff..7b4d0dbd 100755 --- a/scripts/verify-workspace-install-docs.sh +++ b/scripts/verify-workspace-install-docs.sh @@ -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