Skip to content

Commit 87391c7

Browse files
committed
Print black and isort versions in CI for reproducing locally, so that formatting
can be fixed locally in accordance with the CI requirements. Without printing the versions, we don't know what to install locally, and a different version may suggest formatting that is not accepted by CI.
1 parent aeba7ae commit 87391c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/check_python_format.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ ISORT="${ISORT:-isort}"
55

66
set -eu
77

8+
# Know the specific versions used to reproduce the formatting checks locally
9+
${BLACK} --version
10+
${ISORT} --version
11+
812
GIT_ROOT=$(readlink -f $(dirname $0)/..)
913

1014
if [ $# -eq 0 ]; then

0 commit comments

Comments
 (0)