for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
SDoc
Copyright 2016 Set Based IT Consultancy
Licence MIT
# ----------------------------------------------------------------------------------------------------------------------
import abc
class Format:
Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.
Abstract parent class for all formatters for generating output documents in a certain format.
# ------------------------------------------------------------------------------------------------------------------
def __init__(self, io, config):
config
Object constructor.
:param cleo.styles.output_style.OutputStyle io: The IO object.
:param configparser.SectionProxy config: The section in the config file for the target_format.
self._io = io
The IO object.
:type: cleo.styles.output_style.OutputStyle
self._errors = 0
The error count.
:type: int
@property
def errors(self):
Getter for the error count.
:rtype: int
return self._errors
@abc.abstractmethod
def generate(self):
Starts generating HTML file.
raise NotImplementedError()
Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.