diff --git a/pyproject.toml b/pyproject.toml index 36e5052..18ac2b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,27 +38,17 @@ Source = 'https://github.com/sinaatalay/rendercv' rendercv = 'rendercv.rendering:main' [project.optional-dependencies] -docs = [ - "mkdocs", - "mkdocs-material", - "mkdocstrings-python", -] -testing = [ - "coverage", - "pytest", - "pytest-cov", -] -linting = [ - "black", - "ruff" -] +docs = ["mkdocs", "mkdocs-material", "mkdocstrings-python"] +testing = ["coverage", "pytest", "pytest-cov"] +linting = ["black", "ruff"] [build-system] +# Use setuptools-scm to be able to include TinyTeX in the package requires = ['setuptools>=68.2.2', "setuptools-scm>=8.0.4"] build-backend = 'setuptools.build_meta' -# [tool.ruff] -# line-length = 88 +[tool.ruff] +line-length = 88 [tool.coverage.run] source = ['rendercv'] diff --git a/rendercv/__main__.py b/rendercv/__main__.py index 9f34256..6508a6f 100644 --- a/rendercv/__main__.py +++ b/rendercv/__main__.py @@ -31,5 +31,6 @@ def main(args=sys.argv[1:]): output_latex_file = render_template(data) run_latex(output_latex_file) + if __name__ == "__main__": main(args=["tests/inputs/personal.yaml"]) diff --git a/rendercv/data_model.py b/rendercv/data_model.py index 0fd19c7..a9cdb96 100644 --- a/rendercv/data_model.py +++ b/rendercv/data_model.py @@ -1236,7 +1236,7 @@ class RenderCVDataModel(BaseModel): design: Design = model.design cv: CurriculumVitae = model.cv section_titles = [section.title for section in cv.sections] - for title in design.options.show_timespan_in: # type: ignore + for title in design.options.show_timespan_in: # type: ignore if title not in section_titles: raise ValueError( f'The section "{title}" that is specified in the'