Orange-OpenSource/python-onapsdk

View on GitHub
src/onapsdk/sdnc/preload.py

Summary

Maintainability
A
45 mins
Test Coverage
A
93%

Function upload_vf_module_preload has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def upload_vf_module_preload(cls,  # pylint: disable=too-many-arguments
Severity: Minor
Found in src/onapsdk/sdnc/preload.py - About 45 mins to fix

    The backslash is redundant between brackets
    Open

                    "GET",\
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Avoid explicit line join between brackets.

    The preferred way of wrapping long lines is by using Python's
    implied line continuation inside parentheses, brackets and braces.
    Long lines can be broken over multiple lines by wrapping expressions
    in parentheses.  These should be used in preference to using a
    backslash for line continuation.
    
    E502: aaa = [123, \\n       123]
    E502: aaa = ("bbb " \\n       "ccc")
    
    Okay: aaa = [123,\n       123]
    Okay: aaa = ("bbb "\n       "ccc")
    Okay: aaa = "bbb " \\n    "ccc"
    Okay: aaa = 123  # \\

    Line too long (86 > 79 characters)
    Open

                                         preload_type=preload_information["preload-type"],
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    Line too long (100 > 79 characters)
    Open

                                     vnf_parameters: Iterable["InstantiationParameter"] = None) -> None:
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    Line too long (82 > 79 characters)
    Open

                yield PreloadInformation(preload_id=preload_information["preload-id"],
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    Line too long (86 > 79 characters)
    Open

                                         preload_data=preload_information["preload-data"])
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    Line too long (95 > 79 characters)
    Open

                    f"{cls.base_url}/restconf/operational/GENERIC-RESOURCE-API:preload-information"
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    The backslash is redundant between brackets
    Open

                    "Get SDNC preload information",\
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Avoid explicit line join between brackets.

    The preferred way of wrapping long lines is by using Python's
    implied line continuation inside parentheses, brackets and braces.
    Long lines can be broken over multiple lines by wrapping expressions
    in parentheses.  These should be used in preference to using a
    backslash for line continuation.
    
    E502: aaa = [123, \\n       123]
    E502: aaa = ("bbb " \\n       "ccc")
    
    Okay: aaa = [123,\n       123]
    Okay: aaa = ("bbb "\n       "ccc")
    Okay: aaa = "bbb " \\n    "ccc"
    Okay: aaa = 123  # \\

    The backslash is redundant between brackets
    Open

                cls.send_message_json(\
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Avoid explicit line join between brackets.

    The preferred way of wrapping long lines is by using Python's
    implied line continuation inside parentheses, brackets and braces.
    Long lines can be broken over multiple lines by wrapping expressions
    in parentheses.  These should be used in preference to using a
    backslash for line continuation.
    
    E502: aaa = [123, \\n       123]
    E502: aaa = ("bbb " \\n       "ccc")
    
    Okay: aaa = [123,\n       123]
    Okay: aaa = ("bbb "\n       "ccc")
    Okay: aaa = "bbb " \\n    "ccc"
    Okay: aaa = 123  # \\

    Line too long (88 > 79 characters)
    Open

                vnf_parameters (Iterable[InstantiationParameter], optional): Iterable object
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    Line too long (97 > 79 characters)
    Open

        def __init__(self, preload_id: str, preload_type: str, preload_data: Dict[str, Any]) -> None:
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    Line too long (81 > 79 characters)
    Open

                    "instantiate_vf_module_ala_carte_upload_preload_gr_api.json.j2").
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    Line too long (90 > 79 characters)
    Open

                                     ).get('preload-information', {}).get('preload-list', []):
    Severity: Minor
    Found in src/onapsdk/sdnc/preload.py by pep8

    Limit all lines to a maximum of 79 characters.

    There are still many devices around that are limited to 80 character
    lines; plus, limiting windows to 80 characters makes it possible to
    have several windows side-by-side.  The default wrapping on such
    devices looks ugly.  Therefore, please limit all lines to a maximum
    of 79 characters. For flowing long blocks of text (docstrings or
    comments), limiting the length to 72 characters is recommended.
    
    Reports error E501.

    There are no issues that match your filters.

    Category
    Status