You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7666e87
Browse filesBrowse the repository at this point in the historyBrowse files
# `ci/scripts/check_asf_yaml_status_checks.py` runs with `python3` from PATH
92
+
# and imports PyYAML. Report a missing prerequisite before any tool is
93
+
# installed or any formatter runs, and point at `uv run`, which sets up the
94
+
# Python dependencies from the uv workspace.
95
+
ensure_python_with_yaml() {
96
+
if!command -v python3 &> /dev/null;then
97
+
echo"[${SCRIPT_NAME}] python3 was not found on PATH. Please run the suite through uv, which provides Python and its packages: uv run ./dev/rust_lint.sh">&2
98
+
exit 1
99
+
fi
100
+
if! python3 -c 'import yaml'&> /dev/null;then
101
+
echo"[${SCRIPT_NAME}] PyYAML is not installed for $(command -v python3). Please run the suite through uv, which installs it: uv run ./dev/rust_lint.sh">&2
102
+
exit 1
103
+
fi
104
+
}
105
+
106
+
ensure_python_with_yaml
107
+
91
108
# Load the tool versions shared with CI (for example, LYCHEE_VERSION).
0 commit comments