mirror of https://github.com/eyhc1/rendercv.git
refactor
This commit is contained in:
parent
4860bdf785
commit
ca2a2719f6
|
@ -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']
|
||||
|
|
|
@ -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"])
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue