fossasia/knittingpattern

View on GitHub
knittingpattern/Mesh.py

Summary

Maintainability
C
1 day
Test Coverage
A
100%

File Mesh.py has 391 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""This module contains the meshes of the knit work."""
from abc import ABCMeta, abstractmethod


class Mesh(metaclass=ABCMeta):
Severity: Minor
Found in knittingpattern/Mesh.py - About 5 hrs to fix

    Mesh has 34 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Mesh(metaclass=ABCMeta):
    
        """A mesh that is either consumed or produced by an instruction.
    
        .. code:: python
    Severity: Minor
    Found in knittingpattern/Mesh.py - About 4 hrs to fix

      Expected 2 blank lines after class or function definition, found 1
      Open

      __all__ = ["Mesh", "ProducedMesh", "ConsumedMesh"]
      Severity: Minor
      Found in knittingpattern/Mesh.py by pep8

      Separate top-level function and class definitions with two blank lines.

      Method definitions inside a class are separated by a single blank
      line.
      
      Extra blank lines may be used (sparingly) to separate groups of
      related functions.  Blank lines may be omitted between a bunch of
      related one-liners (e.g. a set of dummy implementations).
      
      Use blank lines in functions, sparingly, to indicate logical
      sections.
      
      Okay: def a():\n    pass\n\n\ndef b():\n    pass
      Okay: def a():\n    pass\n\n\nasync def b():\n    pass
      Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
      Okay: default = 1\nfoo = 1
      Okay: classify = 1\nfoo = 1
      
      E301: class Foo:\n    b = 0\n    def bar():\n        pass
      E302: def a():\n    pass\n\ndef b(n):\n    pass
      E302: def a():\n    pass\n\nasync def b(n):\n    pass
      E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
      E303: def a():\n\n\n\n    pass
      E304: @decorator\n\ndef a():\n    pass
      E305: def a():\n    pass\na()
      E306: def a():\n    def b():\n        pass\n    def c():\n        pass

      There are no issues that match your filters.

      Category
      Status