This is an automated email from the ASF dual-hosted git repository. gurwls223 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 3e5d3d1 [SPARK-34943][BUILD] Upgrade flake8 to 3.8.0 or above in Jenkins 3e5d3d1 is described below commit 3e5d3d1cfe9c66f9bb729ecd82299c5242b1b01b Author: Kevin Su <pings...@gmail.com> AuthorDate: Wed Sep 15 09:24:50 2021 +0900 [SPARK-34943][BUILD] Upgrade flake8 to 3.8.0 or above in Jenkins ### What changes were proposed in this pull request? Upgrade flake8 to 3.8.0 or above in Jenkins ### Why are the changes needed? In flake8 < 3.8.0, F401 error occurs for imports in if statements when TYPE_CHECKING is True. However, TYPE_CHECKING is always False at runtime, so there is no need to treat it as an error in static analysis. Since this behavior is fixed In flake8 >= 3.8.0, we should upgrade the flake8 installed in Jenkins to 3.8.0 or above. Otherwise, it occurs F401 error for several lines in pandas-on-PySpark that use TYPE_CHECKING ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass the CI Closes #32749 from pingsutw/SPARK-34943. Lead-authored-by: Kevin Su <pings...@gmail.com> Co-authored-by: Hyukjin Kwon <gurwls...@gmail.com> Signed-off-by: Hyukjin Kwon <gurwls...@apache.org> --- dev/lint-python | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/lint-python b/dev/lint-python index e54e391..72438f7 100755 --- a/dev/lint-python +++ b/dev/lint-python @@ -18,7 +18,7 @@ # define test binaries + versions FLAKE8_BUILD="flake8" # TODO(SPARK-34943): minimum version should be 3.8+ -MINIMUM_FLAKE8="3.5.0" +MINIMUM_FLAKE8="3.8.0" MINIMUM_MYPY="0.910" MYPY_BUILD="mypy" PYCODESTYLE_BUILD="pycodestyle" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org