diff --git a/PyTeX/build/pytex_file/enums.py b/PyTeX/build/pytex_file/enums.py index f3773ea..5bc3dfe 100644 --- a/PyTeX/build/pytex_file/enums.py +++ b/PyTeX/build/pytex_file/enums.py @@ -24,7 +24,7 @@ class TeXType(Enum): 'strip': TeXType.TeXDocstrip } if tex_type not in switcher.keys(): - raise ValueError # TODO + raise NotImplementedError else: return switcher[tex_type] @@ -46,7 +46,7 @@ class TeXFlavour(Enum): 'LateX3': TeXFlavour.LaTeX3 } if flavour not in switcher.keys(): - raise ValueError # TODO + raise NotImplementedError else: return switcher[flavour] diff --git a/PyTeX/build/pytex_file/pytex_file.py b/PyTeX/build/pytex_file/pytex_file.py index 2eabb7f..b1ac7b2 100644 --- a/PyTeX/build/pytex_file/pytex_file.py +++ b/PyTeX/build/pytex_file/pytex_file.py @@ -35,7 +35,7 @@ class PyTeXSourceFile: try: configs = self._formatter.format(GlobalPyTeXConfig.target_root()) except Exception as e: - raise e # TODO + raise NotImplementedError configs = [ (self._relative_path.with_name(filename), config) for [filename, config] in configs diff --git a/PyTeX/formatting/formatter.py b/PyTeX/formatting/formatter.py index c4a4ea5..f5a8ccb 100644 --- a/PyTeX/formatting/formatter.py +++ b/PyTeX/formatting/formatter.py @@ -23,3 +23,6 @@ class Formatter: :return: List of files that will be built when the formatter is invoked """ pass + + def set_input_file(self, locate_config=True) -> None: + raise NotImplementedError diff --git a/PyTeX/paths/pytex_path.py b/PyTeX/paths/pytex_path.py index 81c8236..6353c9c 100644 --- a/PyTeX/paths/pytex_path.py +++ b/PyTeX/paths/pytex_path.py @@ -33,7 +33,7 @@ class PyTeXPurePath(PurePath): self._root_dir / GlobalPyTeXConfig.wrapper_dir() ) except ValueError as e: - raise ValueError # TODO + raise NotImplementedError def root_dir_type(self) -> PyTeXRootDirType: return self._pytex_root_dir_type diff --git a/PyTeX/paths/relative_path.py b/PyTeX/paths/relative_path.py index b9bba93..f9f47de 100644 --- a/PyTeX/paths/relative_path.py +++ b/PyTeX/paths/relative_path.py @@ -31,7 +31,7 @@ class RelativePath(Path): try: self._relative_path = self.relative_to(self._root_dir) except ValueError as e: - raise ValueError # TODO + raise NotImplementedError @property def root_dir_type(self) -> PyTeXRootDirType: diff --git a/PyTeX/versioning/version_info/version_info.py b/PyTeX/versioning/version_info/version_info.py index 69041dc..a5de263 100644 --- a/PyTeX/versioning/version_info/version_info.py +++ b/PyTeX/versioning/version_info/version_info.py @@ -8,7 +8,7 @@ class GitVersionInfo: x in dictionary.keys() for x in [JSON_BRANCH, JSON_COMMIT_HASH] ): - raise ValueError # TODO + raise NotImplementedError self._dirty: bool = dictionary[JSON_DIRTY] self._commit_hash: str = dictionary[JSON_COMMIT_HASH] @@ -39,7 +39,7 @@ class GitVersionInfo: class FileVersionInfo: def __init__(self, dictionary: dict): if JSON_MD5_CHECKSUM not in dictionary.keys(): - raise ValueError # TODO + raise NotImplementedError else: self._md5_checksum = dictionary[JSON_MD5_CHECKSUM]