← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1572981] [NEW] UITK trunk has pep8 errors

 

Public bug reported:

Setting up pep8 (1.5.7-2) ...
+ pep8 --repeat --show-source .
./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:32:80: E501 line too long (88 > 79 characters)
        self.scrollingSections = self.app.select_single(objectName='scrolling_sections')
                                                                               ^
./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:34:80: E501 line too long (82 > 79 characters)
        self.scrollingLabel = self.app.select_single(objectName='scrolling_label')
                                                                               ^
./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:36:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 0 is selected.')
                                                                               ^
./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:50:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 2 is selected.')
                                                                               ^
./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:55:80: E501 line too long (88 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 15 is selected.')
                                                                               ^
./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:58:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 1 is selected.')
                                                                               ^
./tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_common.py:195:80: E501 line too long (81 > 79 characters)
        logger.info("Not going to use Maliit - set UITK_USE_MALIIT to enable it")
                                                                               ^
./tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_qquicklistview.py:120:25: E703 statement ends with a semicolon
            return False;
                        ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:32:80: E501 line too long (88 > 79 characters)
        self.scrollingSections = self.app.select_single(objectName='scrolling_sections')
                                                                               ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:34:80: E501 line too long (82 > 79 characters)
        self.scrollingLabel = self.app.select_single(objectName='scrolling_label')
                                                                               ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:36:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 0 is selected.')
                                                                               ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:50:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 2 is selected.')
                                                                               ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:55:80: E501 line too long (88 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 15 is selected.')
                                                                               ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:58:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 1 is selected.')
                                                                               ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_common.py:195:80: E501 line too long (81 > 79 characters)
        logger.info("Not going to use Maliit - set UITK_USE_MALIIT to enable it")
                                                                               ^
./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_qquicklistview.py:120:25: E703 statement ends with a semicolon
            return False;
                        ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:32:80: E501 line too long (88 > 79 characters)
        self.scrollingSections = self.app.select_single(objectName='scrolling_sections')
                                                                               ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:34:80: E501 line too long (82 > 79 characters)
        self.scrollingLabel = self.app.select_single(objectName='scrolling_label')
                                                                               ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:36:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 0 is selected.')
                                                                               ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:50:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 2 is selected.')
                                                                               ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:55:80: E501 line too long (88 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 15 is selected.')
                                                                               ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:58:80: E501 line too long (87 > 79 characters)
        self.assertEqual(self.scrollingLabel.text, 'Scrollable section 1 is selected.')
                                                                               ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_common.py:195:80: E501 line too long (81 > 79 characters)
        logger.info("Not going to use Maliit - set UITK_USE_MALIIT to enable it")
                                                                               ^
./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_qquicklistview.py:120:25: E703 statement ends with a semicolon
            return False;
                        ^
./.bazaar/plugins/packaging_sorting.py:23:1: E302 expected 2 blank lines, found 1
def pre_commit_hook(local, master, old_revno, old_revid, future_revno,
^
./.bazaar/plugins/packaging_sorting.py:23:71: W291 trailing whitespace
def pre_commit_hook(local, master, old_revno, old_revid, future_revno,
                                                                      ^
./.bazaar/plugins/packaging_sorting.py:31:7: E111 indentation is not a multiple of four
      raise errors.BzrError("Please install 'devscripts' package.")
      ^
./.bazaar/plugins/packaging_sorting.py:32:7: E111 indentation is not a multiple of four
      return
      ^
./.bazaar/plugins/packaging_sorting.py:34:80: E501 line too long (82 > 79 characters)
    subprocess.call(["cp", "-a", "debian", "debian-packaging-wraptest-temporary"])
                                                                               ^
./.bazaar/plugins/packaging_sorting.py:39:9: E128 continuation line under-indented for visual indent
        "debian-packaging-wraptest-temporary", "debian"])
        ^
./.bazaar/plugins/packaging_sorting.py:41:7: E111 indentation is not a multiple of four
      subprocess.call(["rm", "-rf", "debian-packaging-wraptest-temporary"])
      ^
./.bazaar/plugins/packaging_sorting.py:42:7: E111 indentation is not a multiple of four
      raise errors.BzrError("Please run wrap-and-sort -a -t to clean up packaging.")
      ^
./.bazaar/plugins/packaging_sorting.py:42:80: E501 line too long (84 > 79 characters)
      raise errors.BzrError("Please run wrap-and-sort -a -t to clean up packaging.")
                                                                               ^
./.bazaar/plugins/packaging_sorting.py:46:80: E501 line too long (96 > 79 characters)

** Affects: canonical-devices-system-image
     Importance: Critical
     Assignee: Zoltan Balogh (bzoltan)
         Status: In Progress

** Affects: ubuntu-ui-toolkit (Ubuntu RTM)
     Importance: Critical
         Status: Fix Committed

** Package changed: ubuntu-ui-toolkit (Ubuntu) => ubuntu-ui-toolkit
(Ubuntu RTM)

** Branch linked: lp:~bzoltan/ubuntu-ui-
toolkit/Make_pep8_happy_with_all_the_python_scripts

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1572981

Title:
  UITK trunk has pep8 errors

Status in Canonical System Image:
  In Progress
Status in ubuntu-ui-toolkit package in Ubuntu RTM:
  Fix Committed

Bug description:
  Setting up pep8 (1.5.7-2) ...
  + pep8 --repeat --show-source .
  ./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:32:80: E501 line too long (88 > 79 characters)
          self.scrollingSections = self.app.select_single(objectName='scrolling_sections')
                                                                                 ^
  ./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:34:80: E501 line too long (82 > 79 characters)
          self.scrollingLabel = self.app.select_single(objectName='scrolling_label')
                                                                                 ^
  ./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:36:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 0 is selected.')
                                                                                 ^
  ./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:50:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 2 is selected.')
                                                                                 ^
  ./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:55:80: E501 line too long (88 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 15 is selected.')
                                                                                 ^
  ./tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:58:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 1 is selected.')
                                                                                 ^
  ./tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_common.py:195:80: E501 line too long (81 > 79 characters)
          logger.info("Not going to use Maliit - set UITK_USE_MALIIT to enable it")
                                                                                 ^
  ./tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_qquicklistview.py:120:25: E703 statement ends with a semicolon
              return False;
                          ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:32:80: E501 line too long (88 > 79 characters)
          self.scrollingSections = self.app.select_single(objectName='scrolling_sections')
                                                                                 ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:34:80: E501 line too long (82 > 79 characters)
          self.scrollingLabel = self.app.select_single(objectName='scrolling_label')
                                                                                 ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:36:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 0 is selected.')
                                                                                 ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:50:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 2 is selected.')
                                                                                 ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:55:80: E501 line too long (88 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 15 is selected.')
                                                                                 ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:58:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 1 is selected.')
                                                                                 ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_common.py:195:80: E501 line too long (81 > 79 characters)
          logger.info("Not going to use Maliit - set UITK_USE_MALIIT to enable it")
                                                                                 ^
  ./debian/ubuntu-ui-toolkit-autopilot/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_qquicklistview.py:120:25: E703 statement ends with a semicolon
              return False;
                          ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:32:80: E501 line too long (88 > 79 characters)
          self.scrollingSections = self.app.select_single(objectName='scrolling_sections')
                                                                                 ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:34:80: E501 line too long (82 > 79 characters)
          self.scrollingLabel = self.app.select_single(objectName='scrolling_label')
                                                                                 ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:36:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 0 is selected.')
                                                                                 ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:50:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 2 is selected.')
                                                                                 ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:55:80: E501 line too long (88 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 15 is selected.')
                                                                                 ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/custom_proxy_objects/test_sections.py:58:80: E501 line too long (87 > 79 characters)
          self.assertEqual(self.scrollingLabel.text, 'Scrollable section 1 is selected.')
                                                                                 ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_common.py:195:80: E501 line too long (81 > 79 characters)
          logger.info("Not going to use Maliit - set UITK_USE_MALIIT to enable it")
                                                                                 ^
  ./debian/tmp/usr/lib/python3/dist-packages/ubuntuuitoolkit/_custom_proxy_objects/_qquicklistview.py:120:25: E703 statement ends with a semicolon
              return False;
                          ^
  ./.bazaar/plugins/packaging_sorting.py:23:1: E302 expected 2 blank lines, found 1
  def pre_commit_hook(local, master, old_revno, old_revid, future_revno,
  ^
  ./.bazaar/plugins/packaging_sorting.py:23:71: W291 trailing whitespace
  def pre_commit_hook(local, master, old_revno, old_revid, future_revno,
                                                                        ^
  ./.bazaar/plugins/packaging_sorting.py:31:7: E111 indentation is not a multiple of four
        raise errors.BzrError("Please install 'devscripts' package.")
        ^
  ./.bazaar/plugins/packaging_sorting.py:32:7: E111 indentation is not a multiple of four
        return
        ^
  ./.bazaar/plugins/packaging_sorting.py:34:80: E501 line too long (82 > 79 characters)
      subprocess.call(["cp", "-a", "debian", "debian-packaging-wraptest-temporary"])
                                                                                 ^
  ./.bazaar/plugins/packaging_sorting.py:39:9: E128 continuation line under-indented for visual indent
          "debian-packaging-wraptest-temporary", "debian"])
          ^
  ./.bazaar/plugins/packaging_sorting.py:41:7: E111 indentation is not a multiple of four
        subprocess.call(["rm", "-rf", "debian-packaging-wraptest-temporary"])
        ^
  ./.bazaar/plugins/packaging_sorting.py:42:7: E111 indentation is not a multiple of four
        raise errors.BzrError("Please run wrap-and-sort -a -t to clean up packaging.")
        ^
  ./.bazaar/plugins/packaging_sorting.py:42:80: E501 line too long (84 > 79 characters)
        raise errors.BzrError("Please run wrap-and-sort -a -t to clean up packaging.")
                                                                                 ^
  ./.bazaar/plugins/packaging_sorting.py:46:80: E501 line too long (96 > 79 characters)

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1572981/+subscriptions