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_drv: Optional[bool] = None
|
||||||
self._include_ins: 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
|
@classmethod
|
||||||
def from_yaml(cls, yaml):
|
def from_yaml(cls, yaml):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def naming_scheme(self) -> NamingScheme:
|
def naming_scheme(self) -> NamingScheme:
|
||||||
if self._naming_scheme is None:
|
if self._naming_scheme is None:
|
||||||
|
@ -169,11 +171,11 @@ class FormattingConfig(Config):
|
||||||
return self._include_ins
|
return self._include_ins
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def use_docstrip_guards(self) -> list:
|
def docstrip_guards(self) -> list:
|
||||||
if self._use_docstrip_guards is None:
|
if self._docstrip_guards is None:
|
||||||
return []
|
return []
|
||||||
else:
|
else:
|
||||||
return self._use_docstrip_guards
|
return self._docstrip_guards
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def description(self) -> str:
|
def description(self) -> str:
|
||||||
|
@ -189,6 +191,20 @@ class FormattingConfig(Config):
|
||||||
else:
|
else:
|
||||||
return self._include_time
|
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:
|
class DocFormattingConfig:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
Loading…
Reference in a new issue