Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37011

Upgrade flake8 to 3.9.0 or above in Jenkins

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • PySpark
    • None

    Description

      In flake8 < 3.9.0, F401 error occurs for imports when the imported identities are used in a bound argument in TypeVar(..., bound="XXX").

      For example:

      if TYPE_CHECKING:
          from pyspark.pandas.base import IndexOpsMixin
      
      IndexOpsLike = TypeVar("IndexOpsLike", bound="IndexOpsMixin")
      

      Since this behavior is fixed In flake8 >= 3.9.0, we should upgrade the flake8 installed in Jenkins to 3.9.0 or above.
      And also we might update the MINIMUM_FLAKE8 in the lint-python from 3.8.0 to 3.9.0.

      Attachments

        Issue Links

          Activity

            People

              shaneknapp Shane Knapp
              ueshin Takuya Ueshin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: