Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11516

Upgrade to pylint >=2.6.0

Details

    • Task
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.34.0
    • sdk-py-core, testing
    • None

    Description

      I accidentally ran the latest pylint (2.6.0 as opposed to 2.4.3 which we currently use), and found that it raised a lot of warnings, many of which looked useful. For example:

      apache_beam/pvalue.py:500:11: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
      apache_beam/utils/timestamp.py:132:6: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
      

      We should address these warnings and run 2.6.0 (or whatever is the latest at time of implementation) continuously

      Attachments

        Issue Links

          Activity

            People

              benglez Benjamin Gonzalez
              bhulette Brian Hulette
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h 20m
                  6h 20m