salvoventura/pypexels

View on GitHub
pypexels/src/pexelspage.py

Summary

Maintainability
A
35 mins
Test Coverage

Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def __init__(self, url, api_key, api_version=API_VERSION, valid_options=None, **kwargs):
Severity: Minor
Found in pypexels/src/pexelspage.py - About 35 mins to fix

    Continuation line missing indentation or outdented
    Open

                self.nopaging_url, self.per_page, self.total_results / self.per_page + 1),
    Severity: Minor
    Found in pypexels/src/pexelspage.py by pep8

    Continuation lines indentation.

    Continuation lines should align wrapped elements either vertically
    using Python's implicit line joining inside parentheses, brackets
    and braces, or using a hanging indent.
    
    When using a hanging indent these considerations should be applied:
    - there should be no arguments on the first line, and
    - further indentation should be used to clearly distinguish itself
      as a continuation line.
    
    Okay: a = (\n)
    E123: a = (\n    )
    
    Okay: a = (\n    42)
    E121: a = (\n   42)
    E122: a = (\n42)
    E123: a = (\n    42\n    )
    E124: a = (24,\n     42\n)
    E125: if (\n    b):\n    pass
    E126: a = (\n        42)
    E127: a = (24,\n      42)
    E128: a = (24,\n    42)
    E129: if (a or\n    b):\n    pass
    E131: a = (\n    42\n 24)

    There are no issues that match your filters.

    Category
    Status