From e685ed34d8c8f115b90ea2716448ef5af31740d7 Mon Sep 17 00:00:00 2001 From: barrierye Date: Mon, 4 May 2020 12:17:12 +0800 Subject: [PATCH] fix codestyle check --- tools/serving_check_style.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/serving_check_style.sh b/tools/serving_check_style.sh index 8739ba7e..f8ebad3b 100644 --- a/tools/serving_check_style.sh +++ b/tools/serving_check_style.sh @@ -23,6 +23,12 @@ function check_style() { pre-commit install clang-format --version + # virtualenv(20.0.19) was updated on May 3. The new version of virtualenv + # uses `sysconfig.get_makefile_filename`. But python2.7.5 does not support + # `sysconfig.get_makefile_filename`, only `sysconfig._get_makefile_filename`. + # See more: https://bugs.python.org/issue22199 + pip install -U 'virtualenv==20.0.18' + if ! pre-commit run -a ; then git diff exit 1 -- GitLab