Package repoman :: Module checks :: Class InheritEclass
[hide private]

Class InheritEclass

source code

object --+    
         |    
 LineCheck --+
             |
            InheritEclass


Base class for checking for missing inherits, as well as excess inherits.

Args:
        eclass: Set to the name of your eclass.
        funcs: A tuple of functions that this eclass provides.
        comprehensive: Is the list of functions complete?
        exempt_eclasses: If these eclasses are inherited, disable the missing
                          inherit check.

Instance Methods [hide private]
 
__init__(self, eclass, funcs=None, comprehensive=False, exempt_eclasses=None, ignore_missing=False, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
new(self, pkg) source code
 
check(self, num, line)
Run the check on line and return error if there is one
source code
 
end(self) source code

Inherited from LineCheck: check_eapi

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from LineCheck: ignore_comment, ignore_line

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, eclass, funcs=None, comprehensive=False, exempt_eclasses=None, ignore_missing=False, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

new(self, pkg)

source code 
Overrides: LineCheck.new

check(self, num, line)

source code 

Run the check on line and return error if there is one

Overrides: LineCheck.check
(inherited documentation)

end(self)

source code 
Overrides: LineCheck.end