We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b6ada commit dc12ebcCopy full SHA for dc12ebc
format.sh
@@ -80,9 +80,12 @@ elif [[ -n "${ONLY_CHANGED}" ]]; then
80
MERGE_BASE="$(get_merge_base)"
81
echo "Checking changed files compared to merge base (${MERGE_BASE})..." >&2
82
elif [[ "${#FILES[@]}" -gt 0 ]]; then
83
- echo "Checking specified files: ${FILES[*]}..." >&2
+echo "Checking specified files: ${FILES[*]}..." >&2
84
fi
85
86
+# Some systems set pip's default to --user, which breaks isolated virtualenvs.
87
+export PIP_USER=0
88
+
89
# If pre-commit is not installed, install it.
90
if ! python3 -m pre_commit --version &>/dev/null; then
91
python3 -m pip install pre-commit
0 commit comments