Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1814

Apply autofixes to resolve some flake8 code formatting issues

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.14.0
    • Fix Version/s: 1.16.0
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      The general strategy for dealing with these in a scalable manner could be as follows

      Identify warning we want to resolve, e.g. E701 multiple statements on a single line.

      Remove E701 from flake8 ignore list in tests/tox.ini.in.

      Run the autofixer

      pip install autopep8
      for f in `find -name "*.py"`; do autopep8 --in-place --select=E701 $f; done
      for f in `find tests -name "*.py.in"`; do autopep8 --in-place --select=E701 $f; done
      autopep8 --in-place --select=E701 tools/*.in
      

      Wait about two minutes.

      Review the diffs produced.

      Submit a change request.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jdanek Jiri Daněk
                Reporter:
                jdanek Jiri Daněk
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: