williamfzc/stagesepx

View on GitHub
stagesepx/cutter/cut_range.py

Summary

Maintainability
A
35 mins
Test Coverage

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert self.can_merge(another, **kwargs)
Severity: Info
Found in stagesepx/cutter/cut_range.py by bandit

Function __init__ has 10 arguments (exceeds 4 allowed). Consider refactoring.
Wontfix

    def __init__(
Severity: Major
Found in stagesepx/cutter/cut_range.py - About 1 hr to fix

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

        def diff(
    Severity: Minor
    Found in stagesepx/cutter/cut_range.py - About 35 mins to fix

      Line too long (112 > 79 characters)
      Open

              return f"<VideoCutRange [{self.start}({self.start_time})-{self.end}({self.end_time})] ssim={self.ssim}>"
      Severity: Minor
      Found in stagesepx/cutter/cut_range.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 (89 > 79 characters)
      Open

                  f"new a range: {self.start}({self.start_time}) - {self.end}({self.end_time})"
      Severity: Minor
      Found in stagesepx/cutter/cut_range.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

              return toolbox.compare_ssim(start_frame.data, end_frame.data) > threshold
      Severity: Minor
      Found in stagesepx/cutter/cut_range.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

              self, image_path: str = None, image_object: np.ndarray = None, *args, **kwargs
      Severity: Minor
      Found in stagesepx/cutter/cut_range.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

              return toolbox.multi_compare_ssim(self_picked, another_picked, pre_hooks)
      Severity: Minor
      Found in stagesepx/cutter/cut_range.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