pytex/PyTeX/config/formatting_config.py

35 lines
1.3 KiB
Python

from typing import List, Optional, Union
from .enums import NamingScheme, License
class BasicFormattingConfig:
def __init__(self):
self._naming_scheme: Union[NamingScheme, str] = NamingScheme.clean # either some predefined scheme, or a formatting string
self._author: Optional[str] = None
self._license: Optional[List[License]] = None
self._extra_header: List[str] = []
self._include_extra_header: bool = True
self._include_build_time: bool = False
self._include_pytex_version: bool = False
self._include_pytex_info_text: bool = False
self._include_repo_version: bool = False
self._include_repo_info_text: bool = False
self._include_drv: bool = True
self._include_ins: bool = True
self._use_docstrip_guards: Optional[List[str]] = None
class PyTeXFormattingConfig(BasicFormattingConfig):
def __init__(self):
super().__init__()
self._available_docstrip_guards: Optional[List[str]] = None
self._doc_dependencies: Optional[List[str]] = None
self._tex_dependencies: Optional[List[str]] = None
class DocFormattingConfig:
def __init__(self):
self._documents: Optional[List[str]] = None
self._dependencies: Optional[List[str]] = None