Skip to content

Test source code for pyFlakes conformance #304

@robwoolley

Description

@robwoolley

The CI tests currently fail:

======================================================================
FAIL: Test source code for pyFlakes conformance
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/nose/case.py", line 170, in runTest
    self.test(*self.arg)
  File "/home/runner/work/superflore/superflore/tests/test_code_format.py", line 39, in test_flake8
    assert p.returncode == 0, \
AssertionError: Command '/opt/hostedtoolcache/Python/3.10.15/x64/bin/python -m flake8 /home/runner/work/superflore/superflore/tests/../superflore --count --import-order-style=google --jobs 1' returned non-zero exit code '1'

Running the test manually shows:

(venv) rosuser@da759d65bbf0:~$ python -m flake8 superflore/superflore --count --import-order-style=google --jobs 1
superflore/superflore/generators/buildstream/bst_element.py:27:1: I201 Missing newline between import groups. 'import yaml' is identified as Third Party and 'import textwrap' is identified as Stdlib.
superflore/superflore/generators/buildstream/bst_element.py:29:1: I100 Import statements are in the wrong order. 'from superflore.exceptions import NoPkgXml' should be before 'import yaml'
superflore/superflore/generators/buildstream/bst_element.py:29:1: I202 Additional newline in a group of imports. 'from superflore.exceptions import NoPkgXml' is identified as Third Party and 'import yaml' is identified as Third Party.
superflore/superflore/generators/buildstream/bst_element.py:149:80: E501 line too long (96 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:207:80: E501 line too long (107 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:213:80: E501 line too long (86 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:222:80: E501 line too long (88 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:255:80: E501 line too long (88 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:258:80: E501 line too long (100 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:278:80: E501 line too long (84 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:280:80: E501 line too long (115 > 79 characters)
superflore/superflore/generators/buildstream/bst_element.py:315:80: E501 line too long (81 > 79 characters)
superflore/superflore/generators/buildstream/gen_packages.py:36:54: E251 unexpected spaces around keyword / parameter equals
superflore/superflore/generators/buildstream/gen_packages.py:36:56: E251 unexpected spaces around keyword / parameter equals
superflore/superflore/generators/buildstream/gen_packages.py:44:9: F841 local variable 'version' is assigned to but never used
superflore/superflore/generators/buildstream/gen_packages.py:48:80: E501 line too long (97 > 79 characters)
superflore/superflore/generators/buildstream/gen_packages.py:68:18: E127 continuation line over-indented for visual indent
superflore/superflore/generators/buildstream/gen_packages.py:84:22: E127 continuation line over-indented for visual indent
superflore/superflore/generators/buildstream/gen_packages.py:106:16: E261 at least two spaces before inline comment
superflore/superflore/generators/buildstream/gen_packages.py:106:17: E262 inline comment should start with '# '
superflore/superflore/generators/buildstream/gen_packages.py:146:5: F841 local variable 'pkg_names' is assigned to but never used
superflore/superflore/generators/buildstream/gen_packages.py:176:80: E501 line too long (80 > 79 characters)
superflore/superflore/generators/buildstream/gen_packages.py:180:80: E501 line too long (86 > 79 characters)
superflore/superflore/generators/buildstream/gen_packages.py:184:80: E501 line too long (81 > 79 characters)
superflore/superflore/generators/buildstream/gen_packages.py:188:80: E501 line too long (95 > 79 characters)
superflore/superflore/generators/buildstream/gen_packages.py:199:80: E501 line too long (84 > 79 characters)
superflore/superflore/generators/buildstream/ros_bst_repo.py:23:80: E501 line too long (83 > 79 characters)
superflore/superflore/generators/buildstream/run.py:26:1: I100 Import statements are in the wrong order. 'from superflore.generators.buildstream.bst_element import BstElement' should be before 'from superflore.generators.buildstream.ros_bst_repo import RosBstRepo'
superflore/superflore/generators/buildstream/run.py:44:80: E501 line too long (87 > 79 characters)
superflore/superflore/generators/buildstream/run.py:52:80: E501 line too long (82 > 79 characters)
superflore/superflore/generators/buildstream/run.py:56:80: E501 line too long (108 > 79 characters)
superflore/superflore/generators/buildstream/run.py:130:80: E501 line too long (80 > 79 characters)
superflore/superflore/generators/buildstream/run.py:135:80: E501 line too long (131 > 79 characters)
superflore/superflore/generators/buildstream/run.py:136:80: E501 line too long (98 > 79 characters)
superflore/superflore/generators/buildstream/run.py:152:80: E501 line too long (88 > 79 characters)
superflore/superflore/generators/ebuild/gen_packages.py:159:80: E501 line too long (88 > 79 characters)
superflore/superflore/generators/ebuild/gen_packages.py:177:80: E501 line too long (99 > 79 characters)
superflore/superflore/generators/ebuild/gen_packages.py:212:80: E501 line too long (88 > 79 characters)
superflore/superflore/generators/ebuild/overlay_instance.py:85:13: F841 local variable 'chunk_count' is assigned to but never used
superflore/superflore/generators/ebuild/overlay_instance.py:99:80: E501 line too long (80 > 79 characters)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions