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

Cleanup Python codebase to enable some of the excluded Python lint checks.

Details

    Description

      https://github.com/apache/beam/pull/9725 upgraded lint checker, however Beam codebase is not fully compliant with some of the checks new linter supports, so we excluded such checks. We would like to have some checks permanently excluded (see discussion on the PR), however we would like to re-enable the following checks:

      consider-using-set-comprehension
      chained-comparison
      consider-using-sys-exit

      To reenable these checks, we should:
      1) remove them from disabled checks in .pylintrc [1] https://github.com/apache/beam/blob/master/sdks/python/.pylintrc and
      2) cleanup the codebase to make it compliant.

      [1] https://github.com/apache/beam/blob/3330069291d8168c56c77acfef84c2566af05ec6/sdks/python/.pylintrc#L81

      Attachments

        Issue Links

          Activity

            People

              stephen.okennedy Stephen O'Kennedy
              tvalentyn Valentyn Tymofieiev
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 5h 20m
                  5h 20m