Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-592

Handle pylint messages

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • None
    • None
    • Pylint messages
    • False
    • False
    • Hide

      None

      Show
      None
    • 0% To Do, 0% In Progress, 100% Done

      When we first enabled pylint back in 2021 we made the decision of only listening to errors and fatal messages, and exclude all other message types. This creates a few issues as we have warnings we do want to listen to, but some others that we don't want to listen to at all due to compatibility issues or incorrect warnings. Some warnings we do care about is cyclic imports, lazy logging, and no newline at end of file.

      We want to go through the warnings throughout the codebase and address every single message by either fixing or permanently disable each one. Some will need to be permanently disabled due to python 2 and 3 compatibility issues

      Messages and their occurrence:

      Acceptance Criteria

      • All messages of pylint have been addressed that's reported in main branch
      • Pylint return code parser has been change to throw error on warnings as well (possibly even even higher levels)
      • Linting works for both code and tests

      Stretch goal

      • Get GitHub PR annotation on each line with offending pylint message (similar to Codecov)

              tkuratom@redhat.com Toshio Kuratomi
              fgustavs@redhat.com Freya Gustavsson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: