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

Apply autofixes to resolve some flake8 code formatting issues

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.14.0
    • 1.16.0
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: