add dependencies attributes
This commit is contained in:
parent
fdcf03eb3d
commit
a49c9f7d1b
1 changed files with 21 additions and 5 deletions
|
@ -48,13 +48,15 @@ class FormattingConfig(Config):
|
|||
|
||||
self._include_drv: Optional[bool] = None
|
||||
self._include_ins: Optional[bool] = None
|
||||
self._use_docstrip_guards: Optional[List[str]] = None
|
||||
self._docstrip_guards: Optional[List[str]] = None
|
||||
|
||||
self._doc_dependencies: Optional[List[str]] = None
|
||||
self._tex_dependencies: Optional[List[str]] = None
|
||||
|
||||
@classmethod
|
||||
def from_yaml(cls, yaml):
|
||||
pass
|
||||
|
||||
|
||||
@property
|
||||
def naming_scheme(self) -> NamingScheme:
|
||||
if self._naming_scheme is None:
|
||||
|
@ -169,11 +171,11 @@ class FormattingConfig(Config):
|
|||
return self._include_ins
|
||||
|
||||
@property
|
||||
def use_docstrip_guards(self) -> list:
|
||||
if self._use_docstrip_guards is None:
|
||||
def docstrip_guards(self) -> list:
|
||||
if self._docstrip_guards is None:
|
||||
return []
|
||||
else:
|
||||
return self._use_docstrip_guards
|
||||
return self._docstrip_guards
|
||||
|
||||
@property
|
||||
def description(self) -> str:
|
||||
|
@ -189,6 +191,20 @@ class FormattingConfig(Config):
|
|||
else:
|
||||
return self._include_time
|
||||
|
||||
@property
|
||||
def doc_dependencies(self) -> List[str]:
|
||||
if self._doc_dependencies is None:
|
||||
return []
|
||||
else:
|
||||
return self._doc_dependencies
|
||||
|
||||
@property
|
||||
def tex_dependencies(self) -> List[str]:
|
||||
if self._tex_dependencies is None:
|
||||
return []
|
||||
else:
|
||||
return self._tex_dependencies
|
||||
|
||||
|
||||
class DocFormattingConfig:
|
||||
def __init__(self):
|
||||
|
|
Loading…
Reference in a new issue